mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Automatically generated by apkbuild-cpan, template 2
|
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
|
pkgname=perl-test-api
|
|
_pkgreal=Test-API
|
|
pkgver=0.010
|
|
pkgrel=2
|
|
pkgdesc="Test a list of subroutines provided by a module"
|
|
url="https://metacpan.org/release/Test-API"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="perl"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-API-$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
|
|
}
|
|
|
|
sha512sums="52d22fc23af83197ea795ebeb5d0e2380347bc78b25f7b325601ef168532f75eb04ddd61edbc8ab78dc6894375681885130d8008275b4345c779e6adcae9e732 Test-API-0.010.tar.gz"
|