aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-session-storage-secure/APKBUILD
blob: 2bdac49d757e8d104b2b2ba86ef60c9a688c261a (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
44
45
46
# 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=0.011
pkgrel=0
pkgdesc="Encrypted, expiring, compressed, serialized session data with integrity"
url="https://metacpan.org/release/Session-Storage-Secure"
arch="noarch"
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="$cpandepends"
makedepends="perl-dev"
checkdepends="$cpancheckdepends"
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="893a924b093d9a8acbc56dec1b7457df5fe9c52d49284435271de3c95e9a7e48082f11e1f022706b32fac8b1c3b706bd1040702cbe0d715796edc995aec5f33f  Session-Storage-Secure-0.011.tar.gz"