diff options
Diffstat (limited to 'testing/perl-test-api/APKBUILD')
-rw-r--r-- | testing/perl-test-api/APKBUILD | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/testing/perl-test-api/APKBUILD b/testing/perl-test-api/APKBUILD index aed9d34b4b..b19e0c931c 100644 --- a/testing/perl-test-api/APKBUILD +++ b/testing/perl-test-api/APKBUILD @@ -3,46 +3,38 @@ # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=perl-test-api _pkgreal=Test-API -pkgver=0.008 +pkgver=0.010 pkgrel=0 pkgdesc="Test a list of subroutines provided by a module" -url="http://search.cpan.org/dist/Test-API/" +url="https://metacpan.org/release/Test-API" arch="noarch" license="Apache-2.0" -cpandepends="" -cpanmakedepends="" -cpancheckdepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" -checkdepends="$cpancheckdepends" +depends="perl" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-API-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } -sha512sums="47ab88c5038b71acc1f5ab38719f33e07edb7b52544d49f73b70923f65184346b9b4d834896438448496433f1cae9034f38a9687b89f80b8d196243351bc922d Test-API-0.008.tar.gz" +sha512sums="52d22fc23af83197ea795ebeb5d0e2380347bc78b25f7b325601ef168532f75eb04ddd61edbc8ab78dc6894375681885130d8008275b4345c779e6adcae9e732 Test-API-0.010.tar.gz" |