aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-25 21:48:19 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-27 15:12:50 +0000
commit5e44ecc853ea2a9c2c70743a3a7886f4324db85f (patch)
tree13e61836f52dad70a28eeaf7f2724894b1743b1f /community
parent6b65870b783a5f7c5b29ebefb2982564a62ffcf7 (diff)
downloadaports-5e44ecc853ea2a9c2c70743a3a7886f4324db85f.tar.bz2
aports-5e44ecc853ea2a9c2c70743a3a7886f4324db85f.tar.xz
community/perl-json-webtoken: modernize, fix license
Diffstat (limited to 'community')
-rw-r--r--community/perl-json-webtoken/APKBUILD17
1 files changed, 6 insertions, 11 deletions
diff --git a/community/perl-json-webtoken/APKBUILD b/community/perl-json-webtoken/APKBUILD
index 39bc4c863d..ee6efd76d3 100644
--- a/community/perl-json-webtoken/APKBUILD
+++ b/community/perl-json-webtoken/APKBUILD
@@ -3,39 +3,34 @@
pkgname=perl-json-webtoken
_pkgname=JSON-WebToken
pkgver=0.10
-pkgrel=1
+pkgrel=2
pkgdesc="JSON Web Token (JWT) implementation for Perl"
url="https://github.com/xaicron/p5-JSON-WebToken"
arch="noarch"
-license="PerlArtistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-json perl-module-runtime perl-mime-base64 perl-carp"
-makedepends="perl-dev perl-module-build perl-json perl-module-runtime perl-test-requires
- perl-crypt-openssl-rsa perl-crypt-openssl-bignum perl-test-mock-guard
- perl-class-load"
+makedepends="perl-dev perl-module-build perl-test-requires perl-crypt-openssl-rsa
+ perl-crypt-openssl-bignum perl-test-mock-guard perl-class-load"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- perl Build.PL --installdirs=vendor || return 1
+ perl Build.PL --installdirs=vendor
}
build() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build
}
check() {
- cd "$builddir"
- ./Build test
+ ./Build test
}
package() {
- cd "$builddir"
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}