[arch-commits] CVS update of extra/lib/perl-digest-hmac (PKGBUILD)
Kevin Piche
kevin at archlinux.org
Wed Jan 16 04:32:10 UTC 2008
Date: Tuesday, January 15, 2008 @ 23:32:10
Author: kevin
Path: /home/cvs-extra/extra/lib/perl-digest-hmac
Modified: PKGBUILD (1.4 -> 1.5)
upgpkg: perl-digest-hmac 1.01-3
Updated for new perl policy
----------+
PKGBUILD | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
Index: extra/lib/perl-digest-hmac/PKGBUILD
diff -u extra/lib/perl-digest-hmac/PKGBUILD:1.4 extra/lib/perl-digest-hmac/PKGBUILD:1.5
--- extra/lib/perl-digest-hmac/PKGBUILD:1.4 Sun Sep 2 08:22:17 2007
+++ extra/lib/perl-digest-hmac/PKGBUILD Tue Jan 15 23:32:09 2008
@@ -1,31 +1,28 @@
-# $Id: PKGBUILD,v 1.4 2007/09/02 12:22:17 jgc Exp $
+# $Id: PKGBUILD,v 1.5 2008/01/16 04:32:09 kevin Exp $
# Maintainer: eric <eric at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-digest-hmac
+_realname=Digest-HMAC
pkgver=1.01
-pkgrel=2
+pkgrel=3
pkgdesc="Perl Module: Keyed-Hashing for Message Authentication."
arch=(i686 x86_64)
license=('PerlArtistic')
-url="http://search.cpan.org/dist/Digest-HMAC"
-depends=('perl-digest-sha1')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl-digest-sha1' 'perl>=5.10.0')
options=(!emptydirs)
replaces=('digest-hmac')
provides=('digest-hmac')
-source=(http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-$pkgver.tar.gz)
+source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
md5sums=('32dc54c765100c638b5d7f7ff4c5c626')
build() {
- cd $startdir/src/Digest-HMAC-$pkgver
- # 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
+ cd ${startdir}/src/${_realname}-${pkgver}
+ # install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 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