diff --git a/main/perl-super/APKBUILD b/main/perl-super/APKBUILD index 21b30732d59..84ca233f879 100644 --- a/main/perl-super/APKBUILD +++ b/main/perl-super/APKBUILD @@ -1,37 +1,36 @@ +# Automatically generated by apkbuild-cpan, template 4 # Maintainer: Leonardo Arena pkgname=perl-super -_pkgreal=SUPER pkgver=1.20190531 -pkgrel=2 +pkgrel=3 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=SUPER pkgdesc="Control superclass method dispatch" -url="https://metacpan.org/pod/SUPER" +url="https://metacpan.org/release/SUPER/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" -depends="perl" -makedepends="perl-dev perl-module-build perl-sub-identify" +depends="perl perl-sub-identify" +makedepends="perl-module-build" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/SUPER-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - default_prepare - export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor -} - build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor - make + perl Build.PL \ + --installdirs=vendor \ + --create_packlist=0 + ./Build } check() { - make test + ./Build test } package() { - make DESTDIR="$pkgdir" install - find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete + ./Build install --destdir="$pkgdir" } -sha512sums="fb1072c76aa9d82edb39ec75f0e14c0fa41837b36b7d2ec24482a20338484cba867646f5e3ceb12ff4f8e1a6f333f5243900c2114d772a29d6c0380feabd3565 SUPER-1.20190531.tar.gz" +sha512sums=" +fb1072c76aa9d82edb39ec75f0e14c0fa41837b36b7d2ec24482a20338484cba867646f5e3ceb12ff4f8e1a6f333f5243900c2114d772a29d6c0380feabd3565 SUPER-1.20190531.tar.gz +"