# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-devel-cover #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Devel-Cover pkgver=1.40 pkgrel=1 pkgdesc="Code coverage metrics for Perl" url="https://metacpan.org/release/Devel-Cover/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-html-parser" makedepends="perl-dev" checkdepends="perl-test-differences" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PJ/PJCJ/Devel-Cover-$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=" 47aa19947372b9c4978fc995ffe9d2a8b0cb87b14885002085302f36784e6c9f193d80dfb1d020ef3b938620fbaf5ed0d8963a624fedd8fb5eafd19ed4038076 Devel-Cover-1.40.tar.gz "