[arch-commits] Commit in mpd/repos (5 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Nov 12 13:34:47 UTC 2017


    Date: Sunday, November 12, 2017 @ 13:34:46
  Author: foutrelis
Revision: 309628

archrelease: copy trunk to staging-x86_64

Added:
  mpd/repos/staging-x86_64/
  mpd/repos/staging-x86_64/PKGBUILD
    (from rev 309627, mpd/trunk/PKGBUILD)
  mpd/repos/staging-x86_64/conf
    (from rev 309627, mpd/trunk/conf)
  mpd/repos/staging-x86_64/install
    (from rev 309627, mpd/trunk/install)
  mpd/repos/staging-x86_64/tmpfiles.d
    (from rev 309627, mpd/trunk/tmpfiles.d)

------------+
 PKGBUILD   |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 conf       |    6 +++++
 install    |    5 ++++
 tmpfiles.d |    1 
 4 files changed, 74 insertions(+)

Copied: mpd/repos/staging-x86_64/PKGBUILD (from rev 309627, mpd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2017-11-12 13:34:46 UTC (rev 309628)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+# Contributor: Ben <ben at benmazer.net>
+
+pkgname=mpd
+pkgver=0.20.11
+pkgrel=2
+pkgdesc='Flexible, powerful, server-side application for playing music'
+url='https://www.musicpd.org/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2'
+         'sqlite' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl' 'libmpdclient'
+         'icu' 'libupnp' 'libnfs' 'libsamplerate' 'libsoxr' 'smbclient' 'libcdio-paranoia'
+         'libgme' 'zziplib')
+makedepends=('boost' 'doxygen')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
+#source=("https://www.musicpd.org/download/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.sig}
+source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig}
+        'tmpfiles.d'
+        'conf')
+sha256sums=('e9227d9daf32a63d6f34bf2ea18b3179b4a383e9d2b49d548702a37451e514bc'
+            'SKIP'
+            'c1683ba35774c85e16c70e89f7e2ed1c09619512b1a273daabbd5e34d40439bd'
+            'f40f68205834ca53cea3372e930bfe6c2f9ecc9df3b1605df2fec63a658b2e03')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--enable-cdio-paranoia \
+		--enable-iso9660 \
+		--enable-jack \
+		--enable-libmpdclient \
+		--enable-pipe-output \
+		--enable-pulse \
+		--enable-soundcloud \
+		--enable-zzip \
+		--disable-sidplay \
+		--with-systemduserunitdir=/usr/lib/systemd/user \
+		--with-systemdsystemunitdir=/usr/lib/systemd/system \
+
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+	install -Dm644 ../conf "${pkgdir}"/etc/mpd.conf
+	install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
+	install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd{,/playlists}
+
+	sed '/\[Service\]/a User=mpd' -i "${pkgdir}"/usr/lib/systemd/system/mpd.service
+	sed '/WantedBy=/c WantedBy=default.target' -i "${pkgdir}"/usr/lib/systemd/system/mpd.service
+}

Copied: mpd/repos/staging-x86_64/conf (from rev 309627, mpd/trunk/conf)
===================================================================
--- staging-x86_64/conf	                        (rev 0)
+++ staging-x86_64/conf	2017-11-12 13:34:46 UTC (rev 309628)
@@ -0,0 +1,6 @@
+# See: /usr/share/doc/mpd/mpdconf.example
+
+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"

Copied: mpd/repos/staging-x86_64/install (from rev 309627, mpd/trunk/install)
===================================================================
--- staging-x86_64/install	                        (rev 0)
+++ staging-x86_64/install	2017-11-12 13:34:46 UTC (rev 309628)
@@ -0,0 +1,5 @@
+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
+}

Copied: mpd/repos/staging-x86_64/tmpfiles.d (from rev 309627, mpd/trunk/tmpfiles.d)
===================================================================
--- staging-x86_64/tmpfiles.d	                        (rev 0)
+++ staging-x86_64/tmpfiles.d	2017-11-12 13:34:46 UTC (rev 309628)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd


More information about the arch-commits mailing list