Commit 466cd6f7 authored by Timothy Legge's avatar Timothy Legge
Browse files

community/perl-safe-isa: move from testing and modernize

parent 553f5c1c
# Automatically generated by apkbuild-cpan, template 2
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-safe-isa
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Safe-Isa
pkgver=1.000010
pkgrel=0
pkgrel=1
pkgdesc="Call isa, can, does and DOES safely on things that may not be objects"
url="https://metacpan.org/release/Safe-Isa"
url="https://metacpan.org/release/Safe-Isa/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
......@@ -15,16 +16,15 @@ subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Safe-Isa-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
build() {
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
make test
}
package() {
......@@ -32,9 +32,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="121288c7c59d97f4e48c1e50795d835cac0638a1edb1116876813cc2fe955efced9916222f6b16e4c1dbd5149c9d68c19bc77584f999c411e4c22e2f28ea1838 Safe-Isa-1.000010.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment