main/perl-try-tiny: upgrade to 0.32

also, upgrade to apkbuild-cpan template 4
This commit is contained in:
Celeste 2024-08-17 03:50:07 +00:00 committed by Patrycja Rosa
parent 3b8541e4fa
commit 87cc177d66

View file

@ -1,25 +1,27 @@
# Automatically generated by apkbuild-cpan, template 3
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Sheila Aman <sheila@vulpine.house>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-try-tiny
pkgver=0.32
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Try-Tiny
pkgver=0.31
pkgrel=2
pkgdesc="Minimal try/catch with proper preservation of \$@"
url="https://metacpan.org/release/Try-Tiny/"
arch="noarch"
license="MIT"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-$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
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
@ -30,9 +32,8 @@ check() {
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
1a3c852e56797d81da60a4f4887cb70fc575eca83d10b8cd12fe5d5d0008a967801218f3a5277a2f1347ade95b9515c1f237333e491742d06614c0beecf44768 Try-Tiny-0.31.tar.gz
18610525e1b754760f41a5d9a836a4e78c22ba1b008f7ac16b2796916ef688b03c7cc3002cfc61b274492455a906e75dbe0e2a06ead4e08b33e1c6a0a8569c4e Try-Tiny-0.32.tar.gz
"