[arch-commits] Commit in ncmpc/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Fri Jul 16 04:46:10 EDT 2010


    Date: Friday, July 16, 2010 @ 04:46:09
  Author: andrea
Revision: 85595

upgpkg: ncmpc 0.17-1
upstream release; samples configuration are already in /usr/share/ncmpc/doc

Modified:
  ncmpc/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-16 08:45:06 UTC (rev 85594)
+++ PKGBUILD	2010-07-16 08:46:09 UTC (rev 85595)
@@ -4,7 +4,7 @@
 # Contributor: Daniel Bainton <dpb [at] backarrow.org>
 
 pkgname=ncmpc
-pkgver=0.16.1
+pkgver=0.17
 pkgrel=1
 pkgdesc="A ncurses (command line) interface for MPD"
 arch=("i686" "x86_64")
@@ -13,21 +13,23 @@
 depends=('ncurses' 'glib2' 'libmpdclient')
 optdepends=('python: to enable lyrics plugin'
 	'ruby: to enable lyrics plugin')
-source=("http://downloads.sourceforge.net/musicpd/$pkgname-$pkgver.tar.bz2")
-md5sums=('f3e53a379bd0bc82d315aa111bfdd17a')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('462e848d02d80e912229801d522c4d37')
 
 build() {
-  cd ${srcdir}/$pkgname-$pkgver
+  cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --enable-lyrics-screen \
     --with-lyrics-plugin-dir=/usr/share/ncmpc/lyrics
-  make || return 1
-  make prefix=${pkgdir}/usr install
-  install -d ${pkgdir}/etc/ncmpc
-  install -m644 doc/{config.sample,keys.sample} \
-    ${pkgdir}/etc/ncmpc || return 1
+  make
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install
+
   install -d ${pkgdir}/usr/share/ncmpc/lyrics
   install -m755 lyrics/{10-hd.sh,15-leoslyrics.sh,20-lyricwiki.rb,30-leoslyrics.py} \
-    ${pkgdir}/usr/share/ncmpc/lyrics || return 1
+    ${pkgdir}/usr/share/ncmpc/lyrics
 }



More information about the arch-commits mailing list