aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-crypt-pbkdf2/APKBUILD
blob: 91a34a872c20b06df482320eaf254e9d2147a64c (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
# 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=1
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-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"