[arch-commits] Commit in mpd/trunk (PKGBUILD conf)
Gaetan Bisson
bisson at nymeria.archlinux.org
Thu Oct 31 16:49:55 UTC 2013
Date: Thursday, October 31, 2013 @ 17:49:55
Author: bisson
Revision: 198642
upstream update
Added:
mpd/trunk/conf
Modified:
mpd/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++------------------
conf | 7 +++++++
2 files changed, 18 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-10-31 16:48:15 UTC (rev 198641)
+++ PKGBUILD 2013-10-31 16:49:55 UTC (rev 198642)
@@ -6,7 +6,7 @@
# Contributor: Ben <ben at benmazer.net>
pkgname=mpd
-pkgver=0.17.6
+pkgver=0.18
pkgrel=1
pkgdesc='Flexible, powerful, server-side application for playing music'
url='http://www.musicpd.org/'
@@ -15,10 +15,12 @@
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=('c8cea5cbf87ece252d15457d2249090e73a8d11f'
- 'f4d5922abb69abb739542d8e93f4dfd748acdad7')
+source=("http://www.musicpd.org/download/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"
+ 'tmpfiles.d'
+ 'conf')
+sha1sums=('e3cc99de0c2c595ca576cdb455c6aaedd4f7726a'
+ 'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+ '67c145c046cddd885630d72ce8ebe71f8321ff3b')
backup=('etc/mpd.conf')
install=install
@@ -25,8 +27,7 @@
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
+ sed 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:g' -i src/input/CdioParanoiaInputPlugin.cxx
}
build() {
@@ -35,7 +36,6 @@
--prefix=/usr \
--sysconfdir=/etc \
--enable-jack \
- --enable-lastfm \
--enable-soundcloud \
--enable-pipe-output \
--enable-pulse \
@@ -47,16 +47,9 @@
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
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
}
Added: conf
===================================================================
--- conf (rev 0)
+++ conf 2013-10-31 16:49:55 UTC (rev 198642)
@@ -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"
More information about the arch-commits
mailing list