diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-20 06:24:04 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-20 06:24:04 +0000 |
commit | f75ab34c4dd62f3ee55dd64e6b4c5efaabb7c23e (patch) | |
tree | 00a4b5d4ba94bc15de59dcddd2e5d2bb5890ded5 /community/perl-function-parameters | |
parent | 65c8f4c1b378422478ac67877b69fb357066833b (diff) | |
download | aports-f75ab34c4dd62f3ee55dd64e6b4c5efaabb7c23e.tar.bz2 aports-f75ab34c4dd62f3ee55dd64e6b4c5efaabb7c23e.tar.xz |
community/perl-function-parameters: upgrade to 1.0706, modernize APKBUILD
Diffstat (limited to 'community/perl-function-parameters')
-rw-r--r-- | community/perl-function-parameters/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/community/perl-function-parameters/APKBUILD b/community/perl-function-parameters/APKBUILD index 6abd90d985..df823d4009 100644 --- a/community/perl-function-parameters/APKBUILD +++ b/community/perl-function-parameters/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-function-parameters _pkgreal=Function-Parameters -pkgver=1.0705 +pkgver=1.0706 pkgrel=0 pkgdesc="subroutine definitions with parameter lists" url="http://search.cpan.org/dist/Function-Parameters/" @@ -17,8 +17,13 @@ subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MA/MAUKE/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" +check() { + cd "$builddir" + make test +} + prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') @@ -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="fbaa61e7acb8e85e63a84b8b40ca2b5b Function-Parameters-1.0705.tar.gz" -sha256sums="5dd904dc6511df6901260392ea98d39ebd178e1df195456357e91217229e8e03 Function-Parameters-1.0705.tar.gz" -sha512sums="b58905730b2fa81bf607249d86c68a47d71b810aaca91a497974211bfe094b84c8cc6841eeee0a44e925cb8d632c8f7850365ac0bd194f37c1add081f19fa772 Function-Parameters-1.0705.tar.gz" +sha512sums="76130de0a41f94e62e657dae33c5fce5517e8c617e60107093abb5214c3f16f43e996035e5ffc324acd8bc895ee2722c2bb8919aa69d6eb97720521bc6f54a87 Function-Parameters-1.0706.tar.gz" |