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