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

Gaetan Bisson bisson at nymeria.archlinux.org
Fri Jul 19 08:42:12 UTC 2013


    Date: Friday, July 19, 2013 @ 10:42:12
  Author: bisson
Revision: 191184

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  mpd/repos/testing-i686/
  mpd/repos/testing-i686/PKGBUILD
    (from rev 191183, mpd/trunk/PKGBUILD)
  mpd/repos/testing-i686/install
    (from rev 191183, mpd/trunk/install)
  mpd/repos/testing-i686/tmpfiles.d
    (from rev 191183, mpd/trunk/tmpfiles.d)
  mpd/repos/testing-x86_64/
  mpd/repos/testing-x86_64/PKGBUILD
    (from rev 191183, mpd/trunk/PKGBUILD)
  mpd/repos/testing-x86_64/install
    (from rev 191183, mpd/trunk/install)
  mpd/repos/testing-x86_64/tmpfiles.d
    (from rev 191183, mpd/trunk/tmpfiles.d)

---------------------------+
 testing-i686/PKGBUILD     |   61 ++++++++++++++++++++++++++++++++++++++++++++
 testing-i686/install      |   11 +++++++
 testing-i686/tmpfiles.d   |    1 
 testing-x86_64/PKGBUILD   |   61 ++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/install    |   11 +++++++
 testing-x86_64/tmpfiles.d |    1 
 6 files changed, 146 insertions(+)

Copied: mpd/repos/testing-i686/PKGBUILD (from rev 191183, mpd/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2013-07-19 08:42:12 UTC (rev 191184)
@@ -0,0 +1,61 @@
+# $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.17.4
+pkgrel=3
+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' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl')
+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
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:g' -i src/input/cdio_paranoia_input_plugin.c
+	sed 's:AVCODEC_MAX_AUDIO_FRAME_SIZE:192000:g' -i src/decoder/ffmpeg_decoder_plugin.c
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--enable-jack \
+		--enable-lastfm \
+		--enable-soundcloud \
+		--enable-pulse \
+		--disable-sidplay \
+		--with-systemdsystemunitdir=/usr/lib/systemd/system
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+	install -d "${pkgdir}"/usr/lib/systemd/user
+	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
+	ln -s ../system/mpd.service "${pkgdir}"/usr/lib/systemd/user/mpd.service
+	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
+}

Copied: mpd/repos/testing-i686/install (from rev 191183, mpd/trunk/install)
===================================================================
--- testing-i686/install	                        (rev 0)
+++ testing-i686/install	2013-07-19 08:42:12 UTC (rev 191184)
@@ -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
+}

Copied: mpd/repos/testing-i686/tmpfiles.d (from rev 191183, mpd/trunk/tmpfiles.d)
===================================================================
--- testing-i686/tmpfiles.d	                        (rev 0)
+++ testing-i686/tmpfiles.d	2013-07-19 08:42:12 UTC (rev 191184)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd

Copied: mpd/repos/testing-x86_64/PKGBUILD (from rev 191183, mpd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2013-07-19 08:42:12 UTC (rev 191184)
@@ -0,0 +1,61 @@
+# $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.17.4
+pkgrel=3
+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' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl')
+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
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:g' -i src/input/cdio_paranoia_input_plugin.c
+	sed 's:AVCODEC_MAX_AUDIO_FRAME_SIZE:192000:g' -i src/decoder/ffmpeg_decoder_plugin.c
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--enable-jack \
+		--enable-lastfm \
+		--enable-soundcloud \
+		--enable-pulse \
+		--disable-sidplay \
+		--with-systemdsystemunitdir=/usr/lib/systemd/system
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+	install -d "${pkgdir}"/usr/lib/systemd/user
+	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
+	ln -s ../system/mpd.service "${pkgdir}"/usr/lib/systemd/user/mpd.service
+	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
+}

Copied: mpd/repos/testing-x86_64/install (from rev 191183, mpd/trunk/install)
===================================================================
--- testing-x86_64/install	                        (rev 0)
+++ testing-x86_64/install	2013-07-19 08:42:12 UTC (rev 191184)
@@ -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
+}

Copied: mpd/repos/testing-x86_64/tmpfiles.d (from rev 191183, mpd/trunk/tmpfiles.d)
===================================================================
--- testing-x86_64/tmpfiles.d	                        (rev 0)
+++ testing-x86_64/tmpfiles.d	2013-07-19 08:42:12 UTC (rev 191184)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd




More information about the arch-commits mailing list