# Automatically generated by apkbuild-cpan, template 3 # Contributor: Nathan Johnson # Maintainer: Nathan Johnson pkgname=perl-test-class #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Test-Class pkgver=0.52 pkgrel=1 pkgdesc="Easily create test classes in an xUnit/JUnit style" url="https://metacpan.org/release/Test-Class/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-module-runtime perl-mro-compat perl-try-tiny" checkdepends="perl-test-exception" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SZ/SZABGAB/Test-Class-$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="94d38a7cc93b36ea45c0c209afa7fcba01f45006b8ade638e9591be2510ca0d89c04e0dc271ede870e00f834626d4d271d5799b5044060e9f9b670459376b64f Test-Class-0.52.tar.gz"