mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
55 lines
1.3 KiB
Text
55 lines
1.3 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=perl-test-harness
|
|
pkgver=3.50
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Test-Harness
|
|
pkgdesc="Perl module for Test-Harness"
|
|
url="https://metacpan.org/release/Test-Harness/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
subpackages="$pkgname-doc $pkgname-utils"
|
|
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Test-Harness-$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 \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
utils() {
|
|
pkgdesc="$pkgdesc (utilities)"
|
|
depends="$pkgname perl"
|
|
replaces="perl-utils"
|
|
|
|
amove usr/bin
|
|
}
|
|
|
|
doc() {
|
|
default_doc
|
|
replaces="perl-doc"
|
|
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
5e05fbabe5c701616301b356319ecbc54701af88cf5ab1c60651faf51dcb15dd144895f4ce2f97811e47f47a2ac57a342d080b3e7c0b6901b789be16bd5061ed Test-Harness-3.50.tar.gz
|
|
"
|