[arch-commits] CVS update of extra/lib/perl-digest-sha1 (PKGBUILD)
Kevin Piche
kevin at archlinux.org
Wed Jan 9 04:04:41 UTC 2008
Date: Tuesday, January 8, 2008 @ 23:04:41
Author: kevin
Path: /home/cvs-extra/extra/lib/perl-digest-sha1
Modified: PKGBUILD (1.6 -> 1.7)
upgpkg: perl-digest-sha1 2.11-3
Updated for new perl policy
----------+
PKGBUILD | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
Index: extra/lib/perl-digest-sha1/PKGBUILD
diff -u extra/lib/perl-digest-sha1/PKGBUILD:1.6 extra/lib/perl-digest-sha1/PKGBUILD:1.7
--- extra/lib/perl-digest-sha1/PKGBUILD:1.6 Sat Sep 1 14:03:19 2007
+++ extra/lib/perl-digest-sha1/PKGBUILD Tue Jan 8 23:04:41 2008
@@ -1,31 +1,28 @@
-# $Id: PKGBUILD,v 1.6 2007/09/01 18:03:19 jgc Exp $
+# $Id: PKGBUILD,v 1.7 2008/01/09 04:04:41 kevin Exp $
# Maintainer: Kevin Piche <kevin at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-digest-sha1
+_realname=Digest-SHA1
pkgver=2.11
-pkgrel=2
+pkgrel=3
pkgdesc="Perl Module: Interface to the SHA-1 Algorithm."
arch=(i686 x86_64)
license=('PerlArtistic')
-url="http://search.cpan.org/~gaas/Digest-SHA1"
-depends=('perl')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0')
options=(!emptydirs)
-source=(http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-$pkgver.tar.gz)
+source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
replaces=('digest-sha1')
provides=('digest-sha1')
md5sums=('2449bfe21d6589c96eebf94dae24df6b')
build() {
- cd $startdir/src/Digest-SHA1-$pkgver
- # 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 install DESTDIR=${startdir}/pkg
+ cd ${startdir}/src/${_realname}-${pkgver}
+ # install module in vendor directories.
+ perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+ make install DESTDIR=${startdir}/pkg || return 1
# remove perllocal.pod and .packlist
find ${startdir}/pkg -name perllocal.pod -delete
More information about the arch-commits
mailing list