diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-12 02:15:36 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-12 02:16:13 +0000 |
commit | 5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064 (patch) | |
tree | 8f78d3eaae7a57736bed0b879036677a3762ae72 /community/perl-json-webtoken/APKBUILD | |
parent | cb5921909815c262d070c1ff149bb9790ae311d1 (diff) | |
download | aports-5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064.tar.bz2 aports-5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064.tar.xz |
community/perl-[i-j]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
- add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-json-webtoken/APKBUILD')
-rw-r--r-- | community/perl-json-webtoken/APKBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/community/perl-json-webtoken/APKBUILD b/community/perl-json-webtoken/APKBUILD index 79ad2470b6..39bc4c863d 100644 --- a/community/perl-json-webtoken/APKBUILD +++ b/community/perl-json-webtoken/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-json-webtoken _pkgname=JSON-WebToken pkgver=0.10 -pkgrel=0 +pkgrel=1 pkgdesc="JSON Web Token (JWT) implementation for Perl" url="https://github.com/xaicron/p5-JSON-WebToken" arch="noarch" @@ -17,7 +17,7 @@ source="http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/$_pkgname-$pkgver.ta builddir="$srcdir/$_pkgname-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL --installdirs=vendor || return 1 @@ -26,15 +26,18 @@ prepare() { build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - ./Build && ./Build test + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { cd "$builddir" - ./Build install --destdir="$pkgdir" || return 1 + ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="a68a0e415493495c5d3c516d854de047 JSON-WebToken-0.10.tar.gz" -sha256sums="77c182a98528f1714d82afc548d5b3b4dc93e67069128bb9b9413f24cf07248b JSON-WebToken-0.10.tar.gz" sha512sums="ce4acd42814db12fc16c60a8937a4e7d420b0243c3ca26f96a36ee2a2fb4a14f93538340b199fcce9cfbb090d60de5d7e24d5f008a84e1365d7c31f6db9ee312 JSON-WebToken-0.10.tar.gz" |