From 1e6588d64f084decf287a58b7ff93ff0ce4d0446 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Jun 2012 00:01:23 +0000 Subject: Mon Jun 4 00:01:23 UTC 2012 --- extra/perl-digest-sha1/PKGBUILD | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'extra/perl-digest-sha1') diff --git a/extra/perl-digest-sha1/PKGBUILD b/extra/perl-digest-sha1/PKGBUILD index eaae5e528..e35269169 100644 --- a/extra/perl-digest-sha1/PKGBUILD +++ b/extra/perl-digest-sha1/PKGBUILD @@ -1,16 +1,16 @@ -# $Id: PKGBUILD 125255 2011-05-25 19:17:02Z foutrelis $ +# $Id: PKGBUILD 160525 2012-06-02 10:27:28Z bluewind $ # Maintainer: kevin # Contributor: Manolis Tzanidakis pkgname=perl-digest-sha1 _realname=Digest-SHA1 pkgver=2.13 -pkgrel=2 +pkgrel=3 pkgdesc="Perl interface to the SHA-1 Algorithm" arch=(i686 x86_64) license=('PerlArtistic') url="http://search.cpan.org/dist/${_realname}/" -depends=('perl>=5.10.0') +depends=('perl') options=(!emptydirs) source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz) replaces=('digest-sha1') @@ -18,21 +18,20 @@ provides=('digest-sha1') md5sums=('bd22388f268434f2b24f64e28bf1aa35') build() { - cd ${srcdir}/${_realname}-${pkgver} + cd "${srcdir}/${_realname}-${pkgver}" # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor make +} + +check() { + cd "${srcdir}/${_realname}-${pkgver}" make test } package() { - cd ${srcdir}/${_realname}-${pkgver} - - make install DESTDIR=${pkgdir} - - # remove perllocal.pod and .packlist - find ${pkgdir} -name perllocal.pod -delete - find ${pkgdir} -name .packlist -delete + cd "${srcdir}/${_realname}-${pkgver}" + make install DESTDIR="${pkgdir}" } # vim: ts=2 sw=2 et ft=sh -- cgit v1.2.3-54-g00ecf