summaryrefslogtreecommitdiff
path: root/extra/mpd/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-12 00:04:48 -0700
committerroot <root@rshg054.dnsready.net>2013-04-12 00:04:48 -0700
commitd976aa5e1544c80dc2457ea20b27f28f3fa05899 (patch)
treeb920a24b920930916f1d58602326568fd1e4e9bf /extra/mpd/PKGBUILD
parent337402b957bab442da9e0d46ee7a8d8f32ede3ce (diff)
Fri Apr 12 00:04:48 PDT 2013
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 1762049e5..f89dc5a0a 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')
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
}