summaryrefslogtreecommitdiff
path: root/extra/mpd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-21 01:09:07 -0700
committerroot <root@rshg054.dnsready.net>2013-07-21 01:09:07 -0700
commit35742ff57b7b052dff497273e238578aa091407d (patch)
treea231804ef602873a57537a255455685512bd512f /extra/mpd
parent5dcf6953607ce10f7479bba20fae43fe6d814f2b (diff)
Sun Jul 21 01:08:40 PDT 2013
Diffstat (limited to 'extra/mpd')
-rw-r--r--extra/mpd/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/extra/mpd/PKGBUILD b/extra/mpd/PKGBUILD
index f89dc5a0a..7e7ece279 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 191202 2013-07-20 00:58:51Z 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=3
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 \
@@ -40,9 +46,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"' \