aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2021-04-04 20:57:01 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-04-05 06:41:43 +0000
commit9601164d817a18f33e0fcf042d5aeb3da3cf2bc5 (patch)
tree6d69e27b483f367ae2153574d6490b789b23f9ed
parent3c5c257f7d8e9546766a7eca0be0b4eb9aedbffd (diff)
downloadaports-9601164d817a18f33e0fcf042d5aeb3da3cf2bc5.tar.gz
aports-9601164d817a18f33e0fcf042d5aeb3da3cf2bc5.tar.bz2
aports-9601164d817a18f33e0fcf042d5aeb3da3cf2bc5.tar.xz
testing/perl-session-storage-secure: Modernize
-rw-r--r--testing/perl-session-storage-secure/APKBUILD29
1 files changed, 9 insertions, 20 deletions
diff --git a/testing/perl-session-storage-secure/APKBUILD b/testing/perl-session-storage-secure/APKBUILD
index aabf969ae8..f655effa56 100644
--- a/testing/perl-session-storage-secure/APKBUILD
+++ b/testing/perl-session-storage-secure/APKBUILD
@@ -1,19 +1,15 @@
-# Automatically generated by apkbuild-cpan, template 2
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-session-storage-secure
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Session-Storage-Secure
pkgver=1.000
-pkgrel=0
+pkgrel=1
pkgdesc="Encrypted, expiring, compressed, serialized session data with integrity"
-url="https://metacpan.org/release/Session-Storage-Secure"
+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
@@ -26,27 +22,20 @@ 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}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
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
}
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
sha512sums="ea9cbb985f16968bb195769c9eb238a45840b32c6419e41715edae5a826b94827686d20e6525807fecd43388778f46dc7d660bd64207ed1e4f552d09514cd800 Session-Storage-Secure-1.000.tar.gz"