# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-safe-isa #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Safe-Isa pkgver=1.000010 pkgrel=3 pkgdesc="Call isa, can, does and DOES safely on things that may not be objects" url="https://metacpan.org/release/Safe-Isa/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Safe-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="121288c7c59d97f4e48c1e50795d835cac0638a1edb1116876813cc2fe955efced9916222f6b16e4c1dbd5149c9d68c19bc77584f999c411e4c22e2f28ea1838 Safe-Isa-1.000010.tar.gz"