aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"