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

Felix Yan felixonmars at archlinux.org
Fri Apr 5 13:49:53 UTC 2019


    Date: Friday, April 5, 2019 @ 13:49:53
  Author: felixonmars
Revision: 350112

archrelease: copy trunk to staging-x86_64

Added:
  mpd/repos/staging-x86_64/
  mpd/repos/staging-x86_64/PKGBUILD
    (from rev 350109, mpd/trunk/PKGBUILD)
  mpd/repos/staging-x86_64/conf
    (from rev 350109, mpd/trunk/conf)
  mpd/repos/staging-x86_64/sysusers.d
    (from rev 350110, mpd/trunk/sysusers.d)
  mpd/repos/staging-x86_64/tmpfiles.d
    (from rev 350110, mpd/trunk/tmpfiles.d)

------------+
 PKGBUILD   |   70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 conf       |    6 +++++
 sysusers.d |    2 +
 tmpfiles.d |    3 ++
 4 files changed, 81 insertions(+)

Copied: mpd/repos/staging-x86_64/PKGBUILD (from rev 350109, mpd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-04-05 13:49:53 UTC (rev 350112)
@@ -0,0 +1,70 @@
+# 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.21.7
+pkgrel=2
+pkgdesc='Flexible, powerful, server-side application for playing music'
+url='https://www.musicpd.org/'
+license=('GPL')
+arch=('x86_64')
+depends=('audiofile' 'avahi' 'curl' 'faad2' 'ffmpeg' 'fluidsynth'
+	 'icu' 'jack' 'libao' 'libcdio-paranoia' 'libgme' 'libid3tag' 'libmad'
+	 'libmikmod' 'libmms' 'libmodplug' 'libmpcdec' 'libmpdclient' 'libnfs'
+	 'libsamplerate' 'libshout' 'libsoxr' 'libvorbis' 'systemd-libs'
+	 'libupnp' 'mpg123' 'openal' 'smbclient' 'sqlite' 'twolame' 'wavpack'
+	 'wildmidi' 'yajl' 'zziplib')
+makedepends=('boost' 'meson' 'python-sphinx')
+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'
+        'sysusers.d'
+        'conf')
+sha256sums=('512062bc529bee04d4ccfaa2c6e720afc85bb071e49850a096b5ed518b3b412c'
+            'SKIP'
+            '2faa85c12449a5b3ca422ff1c1fa06d057c7e262a74bfa6298c914a92d6f2e7a'
+            '0b74c6e5db08daab3091dc15a6b0c75210ba2f9e98fa074f6cfd605a461056b6'
+            'f40f68205834ca53cea3372e930bfe6c2f9ecc9df3b1605df2fec63a658b2e03')
+
+backup=('etc/mpd.conf')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	rm -fr build
+	install -d build
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}/build"
+	_opts=('-Ddocumentation=true'
+	       '-Dchromaprint=disabled' # appears not to be used for anything
+	       '-Dsidplay=disabled' # unclear why but disabled in the past
+	       '-Dadplug=disabled' # not in an official repo
+	       '-Dsndio=disabled' # interferes with detection of alsa devices
+	       '-Dshine=disabled' # not in an official repo
+	       '-Dtremor=disabled' # not in an official repo
+	)
+	arch-meson .. ${_opts[@]}
+	ninja
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}/build"
+	DESTDIR="${pkgdir}" ninja install
+	install -Dm644 ../doc/mpdconf.example "${pkgdir}"/usr/share/doc/mpd/mpdconf.example
+	install -Dm644 ../doc/mpd.conf.5 "${pkgdir}"/usr/share/man/man5/mpd.conf.5
+	install -Dm644 ../doc/mpd.1 "${pkgdir}"/usr/share/man/man1/mpd.1
+
+	install -Dm644 ../../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
+	install -Dm644 ../../sysusers.d "${pkgdir}"/usr/lib/sysusers.d/mpd.conf
+	install -Dm644 ../../conf "${pkgdir}"/etc/mpd.conf
+
+	sed \
+		-e '/\[Service\]/a User=mpd' \
+		-e '/WantedBy=/c WantedBy=default.target' \
+		-i "${pkgdir}"/usr/lib/systemd/system/mpd.service
+}

Copied: mpd/repos/staging-x86_64/conf (from rev 350109, mpd/trunk/conf)
===================================================================
--- staging-x86_64/conf	                        (rev 0)
+++ staging-x86_64/conf	2019-04-05 13:49:53 UTC (rev 350112)
@@ -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/sysusers.d (from rev 350110, mpd/trunk/sysusers.d)
===================================================================
--- staging-x86_64/sysusers.d	                        (rev 0)
+++ staging-x86_64/sysusers.d	2019-04-05 13:49:53 UTC (rev 350112)
@@ -0,0 +1,2 @@
+u mpd 45 - /var/lib/mpd
+m mpd audio

Copied: mpd/repos/staging-x86_64/tmpfiles.d (from rev 350110, mpd/trunk/tmpfiles.d)
===================================================================
--- staging-x86_64/tmpfiles.d	                        (rev 0)
+++ staging-x86_64/tmpfiles.d	2019-04-05 13:49:53 UTC (rev 350112)
@@ -0,0 +1,3 @@
+d /run/mpd 0755 mpd mpd
+d /var/lib/mpd 0755 mpd mpd
+d /var/lib/mpd/playlists 0755 mpd mpd


More information about the arch-commits mailing list