# Automatically generated by apkbuild-cpan, template 3 # Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=perl-test-cmd #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Test-Cmd pkgver=1.09 pkgrel=1 pkgdesc="Perl module for portable testing of commands and scripts" url="https://metacpan.org/release/Test-Cmd/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Test-Cmd-$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=" 1f16d948e68542cb7e0d9e87ae3f5d357d96a80931c7da28d4517b6b2e081c1984bd5e2e68d5fed773eedf6df2107827ab1cb8e65801c41b0432fe7932d6ec1a Test-Cmd-1.09.tar.gz "