aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-json-webtoken/APKBUILD
blob: 39bc4c863dc6091139c44bd4ea6ef0756d312fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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=1
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
	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
}

check() {
        cd "$builddir"
        ./Build test
}

package() {
	cd "$builddir"
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="ce4acd42814db12fc16c60a8937a4e7d420b0243c3ca26f96a36ee2a2fb4a14f93538340b199fcce9cfbb090d60de5d7e24d5f008a84e1365d7c31f6db9ee312  JSON-WebToken-0.10.tar.gz"