[arch-commits] CVS update of extra/lib/perl-digest-nilsimsa (PKGBUILD)

Jan de Groot jgc at archlinux.org
Sat Sep 1 20:31:40 UTC 2007


    Date: Saturday, September 1, 2007 @ 16:31:40
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-digest-nilsimsa

Modified: PKGBUILD (1.3 -> 1.4)

upgpkg: perl-digest-nilsimsa 0.06-2
Use universal perl methods


----------+
 PKGBUILD |   33 +++++++++++++++++++--------------
 1 file changed, 19 insertions(+), 14 deletions(-)


Index: extra/lib/perl-digest-nilsimsa/PKGBUILD
diff -u extra/lib/perl-digest-nilsimsa/PKGBUILD:1.3 extra/lib/perl-digest-nilsimsa/PKGBUILD:1.4
--- extra/lib/perl-digest-nilsimsa/PKGBUILD:1.3	Sun May 28 06:19:45 2006
+++ extra/lib/perl-digest-nilsimsa/PKGBUILD	Sat Sep  1 16:31:39 2007
@@ -1,29 +1,34 @@
-# $Id: PKGBUILD,v 1.3 2006/05/28 10:19:45 notz Exp $
+# $Id: PKGBUILD,v 1.4 2007/09/01 20:31:39 jgc Exp $
 # Maintainer: eric <eric at archlinux.org>
 # Contributor: Manolis Tzanidakis
 
 pkgname=perl-digest-nilsimsa
 pkgver=0.06
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl Module: Perl version of Nilsimsa code."
 arch=(i686 x86_64)
-url="http://search.cpan.org/~vipul/Digest-Nilsimsa-$pkgver"
-depends=('perl-digest-sha1')
+license=('LGPL')
+url="http://search.cpan.org/dist/Digest-Nilsimsa"
+depends=('perl')
+options=(!emptydirs)
 source=(http://www.cpan.org/authors/id/V/VI/VIPUL/Digest-Nilsimsa-$pkgver.tar.gz)
-md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')
 replaces=('digest-nilsimsa')
 provides=('digest-nilsimsa')
+md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')
 
 build() {
   cd $startdir/src/Digest-Nilsimsa-$pkgver
-  /usr/bin/perl Makefile.PL
-  # ugly hack to make install location
-  # compatible with newer versions of perl.
-	# NOTE: If the perl version changes from 5.8.5, the sed line needs updating
-  /bin/sed -i "s:5.8.5:current:g" Makefile
-  /usr/bin/make || return 1
-  /usr/bin/make install DESTDIR=$startdir/pkg
-  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
-  /bin/rm $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/Digest/Nilsimsa/.packlist
+  # Force module installation to "current" perl directories.
+  eval `perl -V:archname`
+  PERL_MM_USE_DEFAULT=1 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 install DESTDIR=${startdir}/pkg
+
+  # remove perllocal.pod and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
 }
 # vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list