# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-cryptx #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=CryptX pkgver=0.078 pkgrel=1 pkgdesc="Cryptographic toolkit" url="https://metacpan.org/release/CryptX/" 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/M/MI/MIK/CryptX-$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=" c930b337fdc958de73dcf62291410a992690c1c735e68f16859c1ea50d21d6fad2c6d05d13a39797505ed746172f1885e5038c4ccff04259862d59b40dd12fe1 CryptX-0.078.tar.gz "