testing/perl-glib-ex-objectbits: upgrade to 17

also, upgrade to apkbuild-cpan template 4, and re-enable tests
This commit is contained in:
Celeste 2024-05-18 05:50:03 +00:00 committed by Natanael Copa
parent 6867589a8f
commit 7ef7ef36bd

View File

@ -1,36 +1,39 @@
# Automatically generated by apkbuild-cpan, template 1
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-glib-ex-objectbits
pkgver=17
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Glib-Ex-ObjectBits
pkgver=16
pkgrel=5
pkgdesc="Helpers for Glib objects."
url="https://metacpan.org/release/Glib-Ex-ObjectBits"
pkgdesc="Helpers for Glib objects"
url="https://metacpan.org/release/Glib-Ex-ObjectBits/"
arch="noarch"
license="GPL-3.0-or-later"
options="!check" # fixme: Failed test 'store readonly-float, g_log warning'
depends="perl perl-devel-globaldestruction perl-glib"
checkdepends="perl-test-weaken perl-gtk2 perl-pango"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/Glib-Ex-ObjectBits-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
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 \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
e5820d251512121f4b44cfd67bcf44b1d94dfb756c5e646436684c45ff2d12f12cbfef4d9deb5deaaec0195ae1113448f0427dfe7f175ebd0ed878fb4ddcf671 Glib-Ex-ObjectBits-16.tar.gz
759259dc261432e93c8f68303c72c6c58016c978e252d472460580dd9a0ec4dfff322cac3bdde37dc85faf6473be1349e35215cdce07c173e7c120ed16981ed5 Glib-Ex-ObjectBits-17.tar.gz
"