aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-json-webtoken/APKBUILD
blob: 79ad2470b69f8569f697dcc54ce5db1e6de6d474 (plain) (tree)







































                                                                                                                                                                        
# 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"