summaryrefslogtreecommitdiff
path: root/extra/mpd/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-04-12 10:18:52 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-04-12 10:18:52 +0200
commita4a706ff05afab9bb61870c0049aedb23072cec1 (patch)
treec2200f0a6e7d6eb40e46a91443ef61b7774b5d9e /extra/mpd/PKGBUILD
parent5d57336390ba107efd75b271608fde2fa6172193 (diff)
parentd976aa5e1544c80dc2457ea20b27f28f3fa05899 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/mcelog/PKGBUILD extra/calligra/PKGBUILD extra/libmpdclient/PKGBUILD extra/mpc/PKGBUILD extra/opencv/PKGBUILD extra/qt5/PKGBUILD
Diffstat (limited to 'extra/mpd/PKGBUILD')
-rw-r--r--extra/mpd/PKGBUILD36
1 files changed, 12 insertions, 24 deletions
diff --git a/extra/mpd/PKGBUILD b/extra/mpd/PKGBUILD
index 295a871af..c356c9e97 100644
--- a/extra/mpd/PKGBUILD
+++ b/extra/mpd/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 179309 2013-03-05 11:03:53Z bisson $
+# $Id: PKGBUILD 182602 2013-04-10 23:39:58Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
@@ -6,32 +6,25 @@
# Contributor: Ben <ben@benmazer.net>
pkgname=mpd
-pkgver=0.17.3
-pkgrel=3
+pkgver=0.17.4
+pkgrel=1
pkgdesc='Flexible, powerful, server-side application for playing music'
-url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki'
+url='http://www.musicpd.org/'
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2'
'sqlite' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl')
makedepends=('doxygen')
-source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
- 'ffmpeg.patch'
- 'tmpfiles.d'
- 'rc.d')
-sha1sums=('f684d73a7517371a4461afdb2439f9533b51a49d'
- '8a06d04bfdf4e0dc43479907dc9b3bd7fba6dd10'
- 'f4d5922abb69abb739542d8e93f4dfd748acdad7'
- '3470d489565f0ed479f1665dd2876f66acb5a585')
+source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+ 'tmpfiles.d')
+sha1sums=('f60b54e368fe74fde2fd4571227b0428fe0ae3cb'
+ 'f4d5922abb69abb739542d8e93f4dfd748acdad7')
backup=('etc/mpd.conf')
install=install
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
- patch -p1 -i ../ffmpeg.patch
-
./configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -41,25 +34,20 @@ build() {
--enable-pulse \
--disable-sidplay \
--with-systemdsystemunitdir=/usr/lib/systemd/system
-
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
make DESTDIR="${pkgdir}" install
-
+ 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
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 doc/mpdconf.example
-
- install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/mpd
- 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
+ -i "${pkgdir}"/etc/mpd.conf
}