aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-crypt-bcrypt/APKBUILD
blob: b1499432fe261ea103148c0039d409aac7f3b9f2 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=perl-crypt-bcrypt
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Crypt-Bcrypt
pkgver=0.011
pkgrel=1
pkgdesc="Modern implementation of the bcrypt password hash"
url="https://metacpan.org/release/Crypt-Bcrypt/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Crypt-Bcrypt-$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="
fc660118ace0f891030a7d84083ead65555fbe365f0757ec1242193d787d317148d24d4649adfad9898e4ed2b5bf05f71d17be9fcce276e23b5878a38784e038  Crypt-Bcrypt-0.011.tar.gz
"