# Automatically generated by apkbuild-cpan, template 1 # Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=perl-iptables-chainmgr _pkgreal=IPTables-ChainMgr pkgver=1.6 pkgrel=4 pkgdesc="Perl extension for manipulating iptables and ip6tables policies" url="https://metacpan.org/release/IPTables-ChainMgr/" arch="noarch" license="Artistic-1.0" depends="perl perl-netaddr-ip perl-iptables-parse" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MR/MRASH/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="771fab2f2b8383d22f335d34b38a1b2f7deb5a10841ed005609dbe785197eff0c8be4ba4c595495525a341786a0d2173cafeb4ab6aa100582007c77bd2651c09 IPTables-ChainMgr-1.6.tar.gz"