# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-crypt-x509 _pkgname=Crypt-X509 pkgver=0.52 pkgrel=1 pkgdesc="Parse a X.509 certificate" url="https://metacpan.org/release/Crypt-X509/" arch="noarch" license="Artistic-1.0-Perl" cpandepends="perl-convert-asn1" cpanmakedepends= depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MR/MRSCOTTY/Crypt-X509-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` 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="fc02335f8d3696db709867afc31b1c93b3598c54c0575e4dd2fb50e4ce626d82ac9c09d6ca9b79b42828d252a1a687ee54be203db45d957fec58fb76d239a2d5 Crypt-X509-0.52.tar.gz"