[arch-commits] Commit in mpd/trunk (PKGBUILD mpd.install)

Eric Bélanger eric at archlinux.org
Sun Feb 22 02:31:37 UTC 2009


    Date: Saturday, February 21, 2009 @ 21:31:36
  Author: eric
Revision: 27462

upgpkg: mpd 0.14.2-1
    Upstream update, Rebuilt against faad2 2.7, Added glib2 and curl depends, Added mod support, cleaned up .install file (close FS#12282)

Modified:
  mpd/trunk/PKGBUILD
  mpd/trunk/mpd.install

-------------+
 PKGBUILD    |   13 ++++++-------
 mpd.install |   13 +++++--------
 2 files changed, 11 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-02-22 02:26:41 UTC (rev 27461)
+++ PKGBUILD	2009-02-22 02:31:36 UTC (rev 27462)
@@ -3,27 +3,26 @@
 # Contributor: Ben <ben at benmazer.net>
 
 pkgname=mpd
-pkgver=0.14.1
-pkgrel=3
+pkgver=0.14.2
+pkgrel=1
 pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://musicpd.org"
-depends=('libid3tag' 'libmad' 'flac>=1.1.3' 'audiofile' 'faad2>=2.6.1' 'libmikmod'
+depends=('libid3tag' 'libmad' 'flac>=1.1.3' 'audiofile' 'faad2>=2.7' 'libmikmod'
          'alsa-lib' 'libshout' 'libmpcdec>=1.2.5' 'libsamplerate' 'libao' 'ffmpeg'
-	 'wavpack')
+	 'wavpack' 'glib2' 'curl')
 install=mpd.install
 source=(http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.gz
         'mpd')
-md5sums=('7bb77277b784024faca1a6c922fcf80e'
-	'b1fd15de359db08e4b9ae4b199640f0e')
+md5sums=('64177135f64aca555887ba378de8cdfb' 'b1fd15de359db08e4b9ae4b199640f0e')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --disable-jack \
-    --enable-ao \
+    --enable-ao --enable-mod \
     --with-zeroconf=no
   make || return 1
   make DESTDIR=${pkgdir} install

Modified: mpd.install
===================================================================
--- mpd.install	2009-02-22 02:26:41 UTC (rev 27461)
+++ mpd.install	2009-02-22 02:31:36 UTC (rev 27462)
@@ -10,17 +10,14 @@
 # arg 1:  the new package version
 # arg 2:  the old package version
 post_upgrade() {
-  echo "==> mpd: upgrade from 0.11 -> 0.12: configuration file syntax changed, "
-  echo "==> mpd: make sure to update your configuration file! example conf: /etc/mpd.conf.example"
-  post_install $1
+  if [ "$(vercmp $2 0.12)" -lt 0 ]; then
+    echo "==> mpd: upgrade from 0.11 -> 0.12: configuration file syntax changed, "
+    echo "==> mpd: make sure to update your configuration file! example conf: /etc/mpd.conf.example"
+  fi
+  chown mpd:mpd -R /var/{lib,log,run}/mpd
 }
 
 # arg 1:  the old package version
 pre_remove() {
   userdel mpd &>/dev/null
 }
-
-op=$1
-shift
-
-$op $*




More information about the arch-commits mailing list