aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-session-storage-secure/APKBUILD
blob: aabf969ae8e1d0ec594f4cc6abf524539855048b (plain) (blame)
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
44
45
46
47
48
49
50
51
52
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-session-storage-secure
_pkgreal=Session-Storage-Secure
pkgver=1.000
pkgrel=0
pkgdesc="Encrypted, expiring, compressed, serialized session data with integrity"
url="https://metacpan.org/release/Session-Storage-Secure"
arch="noarch !armhf" # perl-sereal-encoder
license="Apache-2.0"
cpandepends="perl-moox-types-mooselike perl-crypt-rijndael
	perl-string-compare-constanttime perl-moo perl-crypt-urandom
	perl-sereal-decoder perl-namespace-clean perl-crypt-cbc
	perl-math-random-isaac-xs perl-sereal-encoder"
cpancheckdepends="perl-number-tolerant perl-test-deep perl-test-fatal"
depends="
	perl perl-moox-types-mooselike perl-crypt-rijndael perl-string-compare-constanttime perl-moo
	perl-crypt-urandom perl-sereal-decoder perl-namespace-clean perl-crypt-cbc
	perl-math-random-isaac-xs perl-sereal-encoder
	"
makedepends="perl-dev"
checkdepends="perl-number-tolerant perl-test-deep perl-test-fatal"

subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Session-Storage-Secure-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}


sha512sums="ea9cbb985f16968bb195769c9eb238a45840b32c6419e41715edae5a826b94827686d20e6525807fecd43388778f46dc7d660bd64207ed1e4f552d09514cd800  Session-Storage-Secure-1.000.tar.gz"