summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-30 18:17:16 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-30 18:17:16 (GMT)
commit3764784316a5bc5e71277d5c6b632d238eb0bdf6 (patch)
tree4028a0b7fefea665d66f1282b3f22e43937dedd8 /abs/core
parenta637898293a904ad110bdc9981ec786bbd6c5fa2 (diff)
downloadlinhes_pkgbuild-3764784316a5bc5e71277d5c6b632d238eb0bdf6.zip
linhes_pkgbuild-3764784316a5bc5e71277d5c6b632d238eb0bdf6.tar.gz
linhes_pkgbuild-3764784316a5bc5e71277d5c6b632d238eb0bdf6.tar.bz2
perl-package-stash-xs: update to 0.28
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/perl_modules/perl-package-stash-xs/PKGBUILD61
1 files changed, 32 insertions, 29 deletions
diff --git a/abs/core/perl_modules/perl-package-stash-xs/PKGBUILD b/abs/core/perl_modules/perl-package-stash-xs/PKGBUILD
index ee83389..9b0a708 100644
--- a/abs/core/perl_modules/perl-package-stash-xs/PKGBUILD
+++ b/abs/core/perl_modules/perl-package-stash-xs/PKGBUILD
@@ -1,50 +1,53 @@
-# Maintainer: Justin Davis <jrcd83@gmail.com>
-# $Id: PKGBUILD 71819 2012-06-02 10:31:46Z bluewind $
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
+# Contributor: Justin Davis <jrcd83@gmail.com>
pkgname=perl-package-stash-xs
-pkgver=0.25
-pkgrel=2
-pkgdesc="faster and more correct implementation of the Package::Stash API"
-arch=(i686 x86_64)
-license=(PerlArtistic GPL)
-options=(!emptydirs)
-depends=('perl>=5.8.1')
-makedepends=('perl-extutils-makemaker>=6.30')
-checkdepends=('perl-test-fatal' 'perl-test-simple')
-url=https://metacpan.org/release/Package-Stash-XS
-source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-XS-${pkgver}.tar.gz")
-md5sums=(52ece18842c46da8fb7a4a14dea910ab)
-sha512sums=(2b539d9ba1a68c5ba681e9eabbcde4b396f66dc8dbd3b1e333286ea7ce39b93b97ec4bd97c31681720a925553b128371ce2c48f11254806aebd5de868a22b528)
-_distdir="${srcdir}/Package-Stash-XS-${pkgver}"
+pkgver=0.28
+pkgrel=7
+pkgdesc="Faster and more correct implementation of the Package::Stash API"
+arch=('x86_64')
+url="http://search.cpan.org/dist/Package-Stash-XS"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+makedepends=('perl-extutils-makemaker')
+checkdepends=('perl-test-fatal' 'perl-test-requires')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-XS-$pkgver.tar.gz)
+md5sums=('9664356ec3be02626cbd3081ec246b70')
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ PERL_MM_OPT="INSTALLDIRS=vendor" \
+ PERL_MB_OPT="--installdirs vendor" \
MODULEBUILDRC=/dev/null
- cd "$_distdir"
+ cd Package-Stash-XS-${pkgver}
+
/usr/bin/perl Makefile.PL
+
make
)
}
check() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
- cd "$_distdir"
+ cd Package-Stash-XS-${pkgver}
+
make test
)
}
package() {
- cd "$_distdir"
- make DESTDIR="$pkgdir" install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
-}
+ cd Package-Stash-XS-${pkgver}
-# Local Variables:
-# mode: shell-script
-# sh-basic-offset: 2
-# End:
-# vim:set ts=2 sw=2 et:
+ make DESTDIR="$pkgdir"/ install
+# 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;
+}