# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-test-harness #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Test-Harness pkgver=3.46 pkgrel=0 pkgdesc="Perl module for Test-Harness" url="https://metacpan.org/release/Test-Harness/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc $pkgname-utils" source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Test-Harness-$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 } utils() { pkgdesc="$pkgdesc (utilities)" depends="$pkgname perl" replaces="perl-utils" amove usr/bin } doc() { default_doc replaces="perl-doc" local file; find "$pkgdir" -name "*.pod" | while read -r file; do amove "${file#"$pkgdir"}" done } sha512sums=" 66c467f7e9159344ded6d28185c9bb928fe7c332c9bcc1a2bcc5e103bfb533953c4d0d56845cd67a592d340e2d011b8dc9478d3d94f9589b9ebe6ca1527f2a16 Test-Harness-3.46.tar.gz "