# Automatically generated by apkbuild-cpan, template 2 # Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=perl-test-unit _pkgreal=Test-Unit pkgver=0.25 pkgrel=3 pkgdesc="A unit testing framework" url="https://metacpan.org/release/Test-Unit" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" options="!check" depends="perl perl-class-inner perl-error perl-devel-symdump" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MC/MCAST/Test-Unit-$pkgver.tar.gz testcase.patch" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_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 } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="8f76583c7480eec825080eb6cd94d1b1a1c7c3bc7f297607414c95777e9a9f880b5a0d927a41521389ae50c2ba1b9ec3d76149da47d5997add739970df6b154d Test-Unit-0.25.tar.gz d7e874a687f93347cb03b403b55a9a765caa38aed1f24c437c6e4a43d287084366aff5a97b4990487f00979288146a29d36989059c8e83b702824348c0f86bc5 testcase.patch"