# Automatically generated by apkbuild-cpan, template 2 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-test-simple _pkgreal=Test-Simple pkgver=1.302172 pkgrel=0 pkgdesc="Basic utilities for writing tests." url="https://metacpan.org/release/Test-Simple" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" provides="perl-test-tester" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" 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 } doc() { default_doc replaces="perl-doc" } sha512sums="82c3ae0751ff0151597afe8d91d3487782f3cd52a977d441d64f76eb14a1f357fd7ce3ca93bf42ed4fc3b5c7a007e2f03cd9a42f051f5c4d81ef7915e8165339 Test-Simple-1.302172.tar.gz"