diff options
Diffstat (limited to 'extra/mpd/PKGBUILD')
-rw-r--r-- | extra/mpd/PKGBUILD | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/extra/mpd/PKGBUILD b/extra/mpd/PKGBUILD index c356c9e97..2434051da 100644 --- a/extra/mpd/PKGBUILD +++ b/extra/mpd/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 182602 2013-04-10 23:39:58Z bisson $ +# $Id: PKGBUILD 191959 2013-08-02 00:36:31Z bisson $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: Angel Velasquez <angvp@archlinux.org> # Contributor: Andrea Scarpino <andrea@archlinux.org> @@ -7,7 +7,7 @@ pkgname=mpd pkgver=0.17.4 -pkgrel=1 +pkgrel=5 pkgdesc='Flexible, powerful, server-side application for playing music' url='http://www.musicpd.org/' license=('GPL') @@ -23,6 +23,12 @@ sha1sums=('f60b54e368fe74fde2fd4571227b0428fe0ae3cb' 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 \ @@ -31,6 +37,7 @@ build() { --enable-jack \ --enable-lastfm \ --enable-soundcloud \ + --enable-pipe-output \ --enable-pulse \ --disable-sidplay \ --with-systemdsystemunitdir=/usr/lib/systemd/system @@ -40,9 +47,11 @@ build() { 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"' \ |