aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-crypt-argon2/APKBUILD
blob: 8c856b863af4543947809dcd57d8a0987676369f (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-crypt-argon2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Crypt-Argon2
pkgver=0.020
pkgrel=0
pkgdesc="Perl interface to the Argon2 key derivation functions"
url="https://metacpan.org/release/Crypt-Argon2/"
arch="all"
license="Apache-2.0"
depends="perl"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Crypt-Argon2-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
031ee22cb6c45eef0649b58928411aabc5fba59278b231b9772a370e3db6937fa9defdd769ebcbb678f3637aa29ee467ee411a3d5d4544012de0c21eca518f7a  Crypt-Argon2-0.020.tar.gz
"