diff options
Diffstat (limited to 'community/perl-json-webtoken')
-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" |