diff options
author | sudokode | 2015-06-08 20:46:39 -0400 |
---|---|---|
committer | sudokode | 2015-06-08 20:46:39 -0400 |
commit | 6631ae2495d94b76a804d85497ad700895703d5e (patch) | |
tree | c310f440cc67a17208a1c8c5b753de81561a30ee | |
download | aur-6631ae2495d94b76a804d85497ad700895703d5e.tar.gz |
init
-rw-r--r-- | .SRCINFO | 50 | ||||
-rw-r--r-- | PKGBUILD | 77 | ||||
-rw-r--r-- | mpd-system.socket | 10 | ||||
-rw-r--r-- | mpd-user.socket | 9 | ||||
-rw-r--r-- | mpd.conf | 7 | ||||
-rw-r--r-- | mpd.install | 11 | ||||
-rw-r--r-- | mpd.service | 8 | ||||
-rw-r--r-- | mpd.tmpfile | 1 |
8 files changed, 173 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..62c094d74d42 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,50 @@ +pkgbase = mpd-git + pkgdesc = Flexible, powerful, server-side application for playing music + pkgver = 0.19.9.r485.gcd1148c + pkgrel = 1 + url = http://www.musicpd.org/ + install = mpd.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = boost + makedepends = doxygen + makedepends = git + depends = libao + depends = ffmpeg + depends = libmodplug + depends = audiofile + depends = libshout + depends = libmad + depends = curl + depends = faad2 + depends = boost-libs + depends = libupnp + depends = sqlite + depends = jack + depends = libmms + depends = wavpack + depends = avahi + depends = libid3tag + depends = yajl + depends = libmpdclient + depends = opus + depends = libsoxr + provides = mpd + conflicts = mpd + backup = etc/mpd.conf + source = mpd-git::git://git.musicpd.org/master/mpd.git + source = mpd.conf + source = mpd.tmpfile + source = mpd.service + source = mpd-system.socket + source = mpd-user.socket + sha256sums = SKIP + sha256sums = 1dafb23f2da8df4600de0be51677201f63f745bd572f7a6fcd8fa7659ac691ea + sha256sums = c1683ba35774c85e16c70e89f7e2ed1c09619512b1a273daabbd5e34d40439bd + sha256sums = ecb4caedf02dacdb9b71040794145d7547d7ee8349eaea200cbddab85d67ee95 + sha256sums = a05936116d59d442a5f94858f30e759389719ed2ac6dbef25a512d952a156658 + sha256sums = a650e25f9e4490e6dc7172ff95bfb7a1df28175d365741c3d98af3849c4b5428 + +pkgname = mpd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3ac5c8ecafc2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: sudokode <sudokode@gmail.com> +# Contributor: graysky <graysky AT archlinux DOT us> +# Contributor: Slash <demodevil5[at]yahoo[dot]com> +# Contributor: 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-git +pkgver=0.19.9.r485.gcd1148c +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' 'boost-libs' 'libupnp' + 'sqlite' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl' 'libmpdclient' 'opus' 'libsoxr') +makedepends=('boost' 'doxygen' 'git') +provides=('mpd') +conflicts=('mpd') +source=("$pkgname::git://git.musicpd.org/master/mpd.git" + 'mpd.conf' 'mpd.tmpfile' 'mpd.service' 'mpd-system.socket' 'mpd-user.socket') +sha256sums=('SKIP' + '1dafb23f2da8df4600de0be51677201f63f745bd572f7a6fcd8fa7659ac691ea' + 'c1683ba35774c85e16c70e89f7e2ed1c09619512b1a273daabbd5e34d40439bd' + 'ecb4caedf02dacdb9b71040794145d7547d7ee8349eaea200cbddab85d67ee95' + 'a05936116d59d442a5f94858f30e759389719ed2ac6dbef25a512d952a156658' + 'a650e25f9e4490e6dc7172ff95bfb7a1df28175d365741c3d98af3849c4b5428') +backup=('etc/mpd.conf') +install=mpd.install + +pkgver() { + cd $pkgname + + git describe --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g' +} + +build() { + cd $pkgname + + ./autogen.sh + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-jack \ + --enable-soundcloud \ + --enable-pipe-output \ + --enable-pulse \ + --disable-sidplay \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ + --enable-opus \ + --disable-lsr \ + --enable-soxr \ + --disable-aac + + make +} + +package() { + cd $pkgname + + make DESTDIR="$pkgdir" install + + cd .. + + install -d -g 45 -o 45 "$pkgdir"/var/lib/mpd + install -d -g 45 -o 45 "$pkgdir"/var/lib/mpd/playlists + install -Dm644 mpd.conf "$pkgdir"/etc/mpd.conf + install -Dm644 mpd.tmpfile "$pkgdir"/usr/lib/tmpfiles.d/mpd.conf + install -Dm644 mpd.service "$pkgdir"/usr/lib/systemd/user/mpd.service + install -Dm644 mpd-system.socket "$pkgdir"/usr/lib/systemd/system/mpd.socket + install -Dm644 mpd-user.socket "$pkgdir"/usr/lib/systemd/user/mpd.socket +} + +# vim:set ts=2 sw=2 et: diff --git a/mpd-system.socket b/mpd-system.socket new file mode 100644 index 000000000000..b43507fe0e23 --- /dev/null +++ b/mpd-system.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Music Player Daemon socket +After=sound.target + +[Socket] +ListenStream=6600 +Service=mpd.service + +[Install] +WantedBy=sockets.target diff --git a/mpd-user.socket b/mpd-user.socket new file mode 100644 index 000000000000..52bc762d77d8 --- /dev/null +++ b/mpd-user.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Music Player Daemon socket + +[Socket] +ListenStream=6600 +Service=mpd.service + +[Install] +WantedBy=default.target diff --git a/mpd.conf b/mpd.conf new file mode 100644 index 000000000000..d23880eb5535 --- /dev/null +++ b/mpd.conf @@ -0,0 +1,7 @@ +# See: /usr/share/doc/mpd/mpdconf.example + +user "mpd" +pid_file "/run/mpd/mpd.pid" +db_file "/var/lib/mpd/mpd.db" +state_file "/var/lib/mpd/mpdstate" +playlist_directory "/var/lib/mpd/playlists" diff --git a/mpd.install b/mpd.install new file mode 100644 index 000000000000..261b8fd0d44a --- /dev/null +++ b/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 + 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/mpd.service b/mpd.service new file mode 100644 index 000000000000..c2ee8e7e639b --- /dev/null +++ b/mpd.service @@ -0,0 +1,8 @@ +[Unit] +Description=Music Player Daemon + +[Service] +ExecStart=/usr/bin/mpd --no-daemon + +[Install] +WantedBy=default.target diff --git a/mpd.tmpfile b/mpd.tmpfile new file mode 100644 index 000000000000..41c4e743a3a1 --- /dev/null +++ b/mpd.tmpfile @@ -0,0 +1 @@ +d /run/mpd 0755 mpd mpd |