diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-25 07:43:05 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-25 07:44:50 +0000 |
commit | 2e2e45588dd4757b6ed747a952d4e62b4b5c4594 (patch) | |
tree | 043a25217b22463fc195860f6a72acb0686d8819 | |
parent | 612dcda92faa836463210cbef4c8e1f83ef7dfe8 (diff) | |
download | aports-2e2e45588dd4757b6ed747a952d4e62b4b5c4594.tar.bz2 aports-2e2e45588dd4757b6ed747a952d4e62b4b5c4594.tar.xz |
community/perl-business-isbn: upgrade to 3.004, modernize APKBUILD
-rw-r--r-- | community/perl-business-isbn/APKBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/community/perl-business-isbn/APKBUILD b/community/perl-business-isbn/APKBUILD index 732d987f4a..c05d736827 100644 --- a/community/perl-business-isbn/APKBUILD +++ b/community/perl-business-isbn/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-business-isbn _pkgreal=Business-ISBN -pkgver=3.003 +pkgver=3.004 pkgrel=0 pkgdesc="work with International Standard Book Numbers" url="http://search.cpan.org/dist/Business-ISBN/" @@ -17,9 +17,14 @@ subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - default_prepare || return 1 +check() { + cd "$builddir" + make test +} + +prepare() { + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor @@ -28,15 +33,13 @@ prepare() { build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - make && make test + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="dcb00b9443c66e488406f4dadc741947 Business-ISBN-3.003.tar.gz" -sha256sums="f585e17350b016e784a53df3437451bce617a4cf4471bd703e45c439f1ef4bc4 Business-ISBN-3.003.tar.gz" -sha512sums="7321290de47e1a6cfe6bbdcc9eae410a45fa6148da233fca122e6366737d3dacb6a0329db1c5b191db6c064ee0679324fe00675b8bc055fbf6771badbb4ea8af Business-ISBN-3.003.tar.gz" +sha512sums="0ffdfac05da6852a0acc4399acb9cb5171cbc46b5d7b11ee3544763d57946282c06a29c2fbf4ef678f4c1f76a6df0f5def3be76224e3f842f66669aabf394121 Business-ISBN-3.004.tar.gz" |