# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-conf-libconfig #_pkgreal is used by apkbuild-(m)cpan to find modules at MetaCpan _pkgreal=Conf-Libconfig pkgver=1.0.0 pkgrel=1 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" options="!check" # https://github.com/cnangel/Conf-Libconfig/issues/3 build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor 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=" 3ad7c3fbe82adab7816fa6b1a8445df279f4d7c58ba72e88e5afcf7a85d11fa764cb30d3aa0e6a19ae7c6e96eba2544c8289a6bb06706310e26ae6a41fd1ca84 Conf-Libconfig-1.0.0.tar.gz "