From 80dd078b625d2f88c13bdeeb36868ab16700bd97 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 May 2018 20:36:09 +0000 Subject: perl-digest-sha1: rebuild --- abs/core/perl_modules/perl-digest-sha1/PKGBUILD | 33 +++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/abs/core/perl_modules/perl-digest-sha1/PKGBUILD b/abs/core/perl_modules/perl-digest-sha1/PKGBUILD index d65b0d1..9bab443 100644 --- a/abs/core/perl_modules/perl-digest-sha1/PKGBUILD +++ b/abs/core/perl_modules/perl-digest-sha1/PKGBUILD @@ -1,38 +1,45 @@ # $Id$ -# Maintainer: kevin +# Maintainer: Felix Yan +# Contributor: kevin # Contributor: Manolis Tzanidakis pkgname=perl-digest-sha1 _realname=Digest-SHA1 pkgver=2.13 -pkgrel=2 +pkgrel=10 pkgdesc="Perl interface to the SHA-1 Algorithm" -arch=(i686 x86_64) +arch=(x86_64) license=('PerlArtistic') url="http://search.cpan.org/dist/${_realname}/" -depends=('perl>=5.10.0') -options=(!emptydirs) +depends=('perl') +options=('!emptydirs') source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz) replaces=('digest-sha1') 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}" +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; } # vim: ts=2 sw=2 et ft=sh -- cgit v0.12