aports/main/perl-universal-isa/APKBUILD
2023-07-03 18:51:58 +02:00

36 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-universal-isa
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=UNIVERSAL-isa
pkgver=1.20171012
pkgrel=3
pkgdesc="Attempt to recover from people calling UNIVERSAL::isa as a function"
url="https://metacpan.org/release/UNIVERSAL-isa/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/UNIVERSAL-isa-$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
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
abc2943b1706c681734cc03d995859a7d853741ab2013b530aa9f290d8625c5074ec594062c97760044cc1261a20448b9f059287a8f3dae7ba8c303397610518 UNIVERSAL-isa-1.20171012.tar.gz
"