diff options
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/libmms/PKGBUILD | 25 | ||||
-rw-r--r-- | abs/extra/mpd/PKGBUILD | 51 | ||||
-rw-r--r-- | abs/extra/mpd/install | 11 | ||||
-rw-r--r-- | abs/extra/mpd/tmpfiles.d | 1 |
4 files changed, 88 insertions, 0 deletions
diff --git a/abs/extra/libmms/PKGBUILD b/abs/extra/libmms/PKGBUILD new file mode 100644 index 0000000..fd9ab3e --- /dev/null +++ b/abs/extra/libmms/PKGBUILD @@ -0,0 +1,25 @@ +#$Id: PKGBUILD 134220 2011-08-02 15:22:22Z jgc $ +#Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=libmms +pkgver=0.6.2 +pkgrel=1 +pkgdesc="MMS stream protocol library" +arch=(i686 x86_64) +url="http://sourceforge.net/projects/libmms/" +license=(LGPL) +depends=('glib2') +options=('!libtool') +source=(http://download.sourceforge.net/libmms/${pkgname}-${pkgver}.tar.gz) +md5sums=('9f63aa363deb4874e072a45850161bff') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/abs/extra/mpd/PKGBUILD b/abs/extra/mpd/PKGBUILD new file mode 100644 index 0000000..4f36986 --- /dev/null +++ b/abs/extra/mpd/PKGBUILD @@ -0,0 +1,51 @@ +# $Id: PKGBUILD 182602 2013-04-10 23:39:58Z bisson $ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Damir Perisa <damir.perisa@bluewin.ch> +# Contributor: Ben <ben@benmazer.net> + +pkgname=mpd +pkgver=0.17.4 +pkgrel=1 +pkgdesc='Flexible, powerful, server-side application for playing music' +url='http://www.musicpd.org/' +license=('GPL') +arch=('i686' 'x86_64') +depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2' + 'sqlite' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl' 'libsoup') +makedepends=('doxygen') +source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" + 'tmpfiles.d') +sha1sums=('f60b54e368fe74fde2fd4571227b0428fe0ae3cb' + 'f4d5922abb69abb739542d8e93f4dfd748acdad7') + +backup=('etc/mpd.conf') +install=install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-lastfm \ + --enable-soundcloud \ + --disable-sidplay \ + --with-systemdsystemunitdir=/usr/lib/systemd/system + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists + install -Dm644 doc/mpdconf.example "${pkgdir}"/etc/mpd.conf + install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf + sed \ + -e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \ + -e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \ + -e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \ + -e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \ + -e '/^#user/c user "mpd"' \ + -i "${pkgdir}"/etc/mpd.conf +} diff --git a/abs/extra/mpd/install b/abs/extra/mpd/install new file mode 100644 index 0000000..12742b9 --- /dev/null +++ b/abs/extra/mpd/install @@ -0,0 +1,11 @@ +post_install() { + getent group mpd &>/dev/null || groupadd -r -g 45 mpd >/dev/null + getent passwd mpd &>/dev/null || useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/false -G audio mpd >/dev/null + usr/bin/systemd-tmpfiles --create mpd.conf || true +} + +post_remove() { + getent passwd mpd &>/dev/null && userdel mpd >/dev/null + getent group mpd &>/dev/null && groupdel mpd >/dev/null + true +} diff --git a/abs/extra/mpd/tmpfiles.d b/abs/extra/mpd/tmpfiles.d new file mode 100644 index 0000000..41c4e74 --- /dev/null +++ b/abs/extra/mpd/tmpfiles.d @@ -0,0 +1 @@ +d /run/mpd 0755 mpd mpd |