diff --git a/testing/perl-getopt-tabular/APKBUILD b/testing/perl-getopt-tabular/APKBUILD index c3a27d1d1fa..cf8196fe029 100644 --- a/testing/perl-getopt-tabular/APKBUILD +++ b/testing/perl-getopt-tabular/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-getopt-tabular _pkgreal=Getopt-Tabular pkgver=0.3 -pkgrel=2 +pkgrel=3 pkgdesc="Table-driven argument parsing for Perl 5" url="https://metacpan.org/release/Getopt-Tabular" arch="noarch" @@ -14,16 +14,14 @@ subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/G/GW/GWARD/$_pkgreal-$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 && make test + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + make test } package() { @@ -31,4 +29,6 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="a289d4861538ae542f7549364573cadd740538f73862d89dd49eaf6bed6f787ba2848246add171aed6aef4d7d36411d00bef70b76885aa948ce0e7fc8801652b Getopt-Tabular-0.3.tar.gz" +sha512sums=" +a289d4861538ae542f7549364573cadd740538f73862d89dd49eaf6bed6f787ba2848246add171aed6aef4d7d36411d00bef70b76885aa948ce0e7fc8801652b Getopt-Tabular-0.3.tar.gz +"