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

Gaëtan Bisson bisson at archlinux.org
Thu Apr 23 23:55:08 UTC 2020


    Date: Thursday, April 23, 2020 @ 23:55:05
  Author: bisson
Revision: 381458

archrelease: copy trunk to testing-x86_64

Added:
  mpd/repos/testing-x86_64/
  mpd/repos/testing-x86_64/PKGBUILD
    (from rev 381457, mpd/trunk/PKGBUILD)
  mpd/repos/testing-x86_64/conf
    (from rev 381457, mpd/trunk/conf)
  mpd/repos/testing-x86_64/sysusers.d
    (from rev 381457, mpd/trunk/sysusers.d)
  mpd/repos/testing-x86_64/tmpfiles.d
    (from rev 381457, mpd/trunk/tmpfiles.d)

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

Copied: mpd/repos/testing-x86_64/PKGBUILD (from rev 381457, mpd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-04-23 23:55:05 UTC (rev 381458)
@@ -0,0 +1,71 @@
+# 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.23
+pkgrel=1
+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')
+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=('439f522ca9800f375e4fb459ec31e61b3d824fc5c0580ff06dac48b5d21207a3'
+            '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
+	       '-Dzzip=disabled' # not detected correctly
+	)
+	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/testing-x86_64/conf (from rev 381457, mpd/trunk/conf)
===================================================================
--- testing-x86_64/conf	                        (rev 0)
+++ testing-x86_64/conf	2020-04-23 23:55:05 UTC (rev 381458)
@@ -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/testing-x86_64/sysusers.d (from rev 381457, mpd/trunk/sysusers.d)
===================================================================
--- testing-x86_64/sysusers.d	                        (rev 0)
+++ testing-x86_64/sysusers.d	2020-04-23 23:55:05 UTC (rev 381458)
@@ -0,0 +1,2 @@
+u mpd 45 - /var/lib/mpd
+m mpd audio

Copied: mpd/repos/testing-x86_64/tmpfiles.d (from rev 381457, mpd/trunk/tmpfiles.d)
===================================================================
--- testing-x86_64/tmpfiles.d	                        (rev 0)
+++ testing-x86_64/tmpfiles.d	2020-04-23 23:55:05 UTC (rev 381458)
@@ -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