# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-crypt-openssl-verify #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Crypt-OpenSSL-Verify pkgver=0.22 pkgrel=3 pkgdesc="OpenSSL Verify certificate verification in XS." url="https://metacpan.org/release/Crypt-OpenSSL-Verify/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-crypt-openssl-x509" makedepends="perl-dev perl-file-slurp chrpath openssl-dev" checkdepends="perl-file-slurp perl-test-exception" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Crypt-OpenSSL-Verify-$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 chrpath -d "$builddir"/blib/arch/auto/Crypt/OpenSSL/Verify/Verify.so } 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="fca304ad47191d14e58766adf7ba2dfa9ee9002842bdd5b1c39aaada01d17dc4cfc90d052fbb9f8b4a76dec57a5d0931b58adcd9c15a40b5b20c57431d089230 Crypt-OpenSSL-Verify-0.22.tar.gz"