[arch-commits] CVS update of extra/lib/perl-digest-sha1 (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 18:03:19 UTC 2007
Date: Saturday, September 1, 2007 @ 14:03:19
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-digest-sha1
Modified: PKGBUILD (1.5 -> 1.6)
upgpkg: perl-digest-sha1 2.11-2
Use universal perl methods
----------+
PKGBUILD | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
Index: extra/lib/perl-digest-sha1/PKGBUILD
diff -u extra/lib/perl-digest-sha1/PKGBUILD:1.5 extra/lib/perl-digest-sha1/PKGBUILD:1.6
--- extra/lib/perl-digest-sha1/PKGBUILD:1.5 Sun May 28 06:19:45 2006
+++ extra/lib/perl-digest-sha1/PKGBUILD Sat Sep 1 14:03:19 2007
@@ -1,14 +1,16 @@
-# $Id: PKGBUILD,v 1.5 2006/05/28 10:19:45 notz Exp $
+# $Id: PKGBUILD,v 1.6 2007/09/01 18:03:19 jgc Exp $
# Maintainer: Kevin Piche <kevin at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-digest-sha1
pkgver=2.11
-pkgrel=1
+pkgrel=2
pkgdesc="Perl Module: Interface to the SHA-1 Algorithm."
arch=(i686 x86_64)
-url="http://search.cpan.org/~gaas/Digest-SHA1-$pkgver"
-depends=('perl>=5.8.4-1')
+license=('PerlArtistic')
+url="http://search.cpan.org/~gaas/Digest-SHA1"
+depends=('perl')
+options=(!emptydirs)
source=(http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-$pkgver.tar.gz)
replaces=('digest-sha1')
provides=('digest-sha1')
@@ -17,15 +19,16 @@
build() {
cd $startdir/src/Digest-SHA1-$pkgver
# Force module installation to "current" perl directories.
- /usr/bin/perl Makefile.PL \
- INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \
+ 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/${CARCH}-linux-thread-multi
- /usr/bin/make || return 1
- /usr/bin/make install DESTDIR=$startdir/pkg
+ INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
+ make || return 1
+ make install DESTDIR=${startdir}/pkg
- # remove perllocal.pod, .packlist, and empty dirs.
- /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
- /bin/rm -f $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/Digest/SHA1/.packlist
+ # 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