1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00

testing/perl-test-api: upgrade to 0.010

This commit is contained in:
Leo 2019-08-25 01:25:50 -03:00
parent 780f8668eb
commit 10223c9d7e

View file

@ -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"