main/perl-super: move perl-sub-identify to depends

also, recreate with apkbuild-cpan template 4
This commit is contained in:
Celeste 2024-04-27 05:51:10 +00:00 committed by Leonardo Arena
parent f0c0054231
commit 8e10fb158d

View file

@ -1,37 +1,36 @@
# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
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
"