testing/perl-test-allmodules: new aport

This commit is contained in:
Timothy Legge 2020-08-19 23:37:52 +00:00 committed by Leo
parent 5026a5c7d7
commit 16c0ca59e2

View File

@ -0,0 +1,34 @@
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-test-allmodules
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-AllModules
pkgver=0.17
pkgrel=0
pkgdesc="do some tests for modules in search path"
url="https://metacpan.org/release/Test-AllModules/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-module-pluggable perl-test-sharedfork"
makedepends="perl-dev perl-module-build perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BA/BAYASHI/Test-AllModules-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="ed753967ec30f5b1742622228aa219aa1de073fe8956e974d7ba3eb7eeeaedf2989de8159e94eef6e4659b63521e1dd57be5159fa4309aa26e739c1b85ae4b90 Test-AllModules-0.17.tar.gz"