diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-30 20:36:09 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-30 20:36:09 (GMT) |
commit | 80dd078b625d2f88c13bdeeb36868ab16700bd97 (patch) | |
tree | 3badd7382bff26586882b122a7694b1a0754fb4d | |
parent | a8cabee3a30a3948536a02cced6d0ae8ebe515ed (diff) | |
download | linhes_pkgbuild-80dd078b625d2f88c13bdeeb36868ab16700bd97.zip linhes_pkgbuild-80dd078b625d2f88c13bdeeb36868ab16700bd97.tar.gz linhes_pkgbuild-80dd078b625d2f88c13bdeeb36868ab16700bd97.tar.bz2 |
perl-digest-sha1: rebuild
-rw-r--r-- | abs/core/perl_modules/perl-digest-sha1/PKGBUILD | 33 |
1 files 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 <kevin@archlinux.org> +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: kevin <kevin@archlinux.org> # 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 |