[arch-commits] CVS update of extra/multimedia/cddb_get (PKGBUILD)

Eric Belanger eric at archlinux.org
Wed Dec 5 21:23:09 EST 2007


    Date: Wednesday, December 5, 2007 @ 21:23:09
  Author: eric
    Path: /home/cvs-extra/extra/multimedia/cddb_get

Modified: PKGBUILD (1.14 -> 1.15)

upgpkg: cddb_get 2.27-2
fix clobbering of perl symlink (close FS#8492), fixed license


----------+
 PKGBUILD |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)


Index: extra/multimedia/cddb_get/PKGBUILD
diff -u extra/multimedia/cddb_get/PKGBUILD:1.14 extra/multimedia/cddb_get/PKGBUILD:1.15
--- extra/multimedia/cddb_get/PKGBUILD:1.14	Tue Apr 10 14:22:08 2007
+++ extra/multimedia/cddb_get/PKGBUILD	Wed Dec  5 21:23:09 2007
@@ -1,23 +1,32 @@
-# $Id: PKGBUILD,v 1.14 2007/04/10 18:22:08 dan Exp $
+# $Id: PKGBUILD,v 1.15 2007/12/06 02:23:09 eric Exp $
 #contributor Sarah Hay <sarahhay at mb.sympatico.ca>
 # Maintainer: dorphell <dorphell at archlinux.org>
 
 pkgname=cddb_get
 pkgver=2.27
-pkgrel=1
+pkgrel=2
 pkgdesc="This module/script gets the CDDB info for an audio cd."
-license=('GPL' 'Artistic')
+license=('GPL' 'PerlArtistic')
 arch=("i686" "x86_64")
 makedepends=('perl')
+options=(!emptydirs)
 source=(http://armin.emx.at/cddb/CDDB_get-$pkgver.tar.gz)
-url="http://armin.emx.at/cddb/"
 md5sums=('405a3704ad5db45f117cc7cc5bd1ce7c')
+url="http://armin.emx.at/cddb/"
 sha1sums=('cec39851678bbb1fdd76f2cbd170628baf4971e6')
 
 build() {
   cd $startdir/src/CDDB_get-$pkgver
-  perl Makefile.PL
+  # Force module installation to "current" perl directories.
+  eval `perl -V:archname`
+  perl Makefile.PL \
+      INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
+      INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
+      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
   make || return 1
   make DESTDIR=$startdir/pkg install
-  rm $startdir/pkg/usr/lib/perl5/5.8.8/$CARCH-linux-thread-multi/perllocal.pod
+
+  # remove perllocal.pod and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
 }




More information about the arch-commits mailing list