aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-21 22:20:01 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-23 02:12:02 +0200
commit6ee7047ce242d7d53ef16735090bce31ae5c4d82 (patch)
tree0ea3abd70df997d06c9a4195efdf4e93a92d1e6e
parent510245b12dfdcd51a183f269d328ec911782dc53 (diff)
downloadaports-6ee7047ce242d7d53ef16735090bce31ae5c4d82.tar.bz2
aports-6ee7047ce242d7d53ef16735090bce31ae5c4d82.tar.xz
community/perl-json-webtoken: new aport
-rw-r--r--community/perl-json-webtoken/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/perl-json-webtoken/APKBUILD b/community/perl-json-webtoken/APKBUILD
new file mode 100644
index 0000000000..79ad2470b6
--- /dev/null
+++ b/community/perl-json-webtoken/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=perl-json-webtoken
+_pkgname=JSON-WebToken
+pkgver=0.10
+pkgrel=0
+pkgdesc="JSON Web Token (JWT) implementation for Perl"
+url="https://github.com/xaicron/p5-JSON-WebToken"
+arch="noarch"
+license="PerlArtistic"
+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"
+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 || return 1
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL --installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install --destdir="$pkgdir" || return 1
+ 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"