# Automatically generated by apkbuild-cpan, template 2 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-conf-libconfig _pkgreal=Conf-Libconfig pkgver=0.100 pkgrel=2 pkgdesc="Perl extension for libconfig" url="https://metacpan.org/release/Conf-Libconfig/" arch="all" license="bsd" # Not an actual license, there are lots of BSD licenses cpanmakedepends="perl-extutils-pkgconfig perl-test-deep perl-test-exception perl-test-warn" makedepends="perl-dev libconfig-dev $cpanmakedepends" 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 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="52f652bd55131b0357aae6cc8f83811a4ceb5ec005977765ed70e5cb08f828c789d8bcbe247880c1807110b5486915dc90f84d52263b2e7f60adb2ee4654d2a3 Conf-Libconfig-0.100.tar.gz"