aports/testing/perl-conf-libconfig/APKBUILD
Celeste 8476205875 testing/perl-conf-libconfig: upgrade to 1.0.3
also, re-enable tests, and upgrade to apkbuild-cpan template 4
2024-06-10 17:21:42 +00:00

39 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-conf-libconfig
pkgver=1.0.3
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Conf-Libconfig
pkgdesc="Perl extension for libconfig"
url="https://metacpan.org/release/Conf-Libconfig/"
arch="all"
license="BSD-3-Clause"
depends="perl"
makedepends="perl-dev libconfig-dev perl-test-deep perl-test-exception perl-extutils-pkgconfig perl-test-warn"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CN/CNANGEL/Conf-Libconfig-$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 \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
bc6eab280be6c44d573beb77c6b9a4a57b48253421ab3935b909b8d8d7e0b1466988a97ab2dbb4af65f56657b320f48dc415a057810b4d5a37f1925e20293ac0 Conf-Libconfig-1.0.3.tar.gz
"