aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2021-02-10 11:08:59 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2021-02-10 13:36:58 +0000
commitc54b558441746d9eff76b304dc3c9c8ff944fe98 (patch)
tree539fc0d6ef00eca8fba9968e8e7d1fb12c4e3aa1
parent8fcad3ed3c902c6e6ede2161df822fe9b700fff3 (diff)
downloadaports-c54b558441746d9eff76b304dc3c9c8ff944fe98.tar.gz
aports-c54b558441746d9eff76b304dc3c9c8ff944fe98.tar.bz2
aports-c54b558441746d9eff76b304dc3c9c8ff944fe98.tar.xz
community/perl-crypt-pbkdf2: new aport
-rw-r--r--community/perl-crypt-pbkdf2/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/perl-crypt-pbkdf2/APKBUILD b/community/perl-crypt-pbkdf2/APKBUILD
new file mode 100644
index 0000000000..2b7ed6a7ae
--- /dev/null
+++ b/community/perl-crypt-pbkdf2/APKBUILD
@@ -0,0 +1,38 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-crypt-pbkdf2
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Crypt-PBKDF2
+pkgver=0.161520
+pkgrel=0
+pkgdesc="The PBKDF2 password hash algorithm"
+url="https://metacpan.org/release/Crypt-PBKDF2/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="
+ perl perl-module-runtime perl-try-tiny perl-type-tiny perl-strictures perl-moo
+ perl-digest-hmac perl-digest-sha3 perl-namespace-autoclean
+ "
+makedepends="perl-dev perl-test-fatal"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/Crypt-PBKDF2-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+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="0f5dfd6c642fcc3b34bc96f10b6f7344a8f3bac1bda6c610e85099906545bc78953666415240e793deae6db055df6f1007f3a946973ee960921cec4069de3a0a Crypt-PBKDF2-0.161520.tar.gz"