aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-iptables-parse/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-iptables-parse/APKBUILD')
-rw-r--r--community/perl-iptables-parse/APKBUILD18
1 files changed, 5 insertions, 13 deletions
diff --git a/community/perl-iptables-parse/APKBUILD b/community/perl-iptables-parse/APKBUILD
index 4286dafd5cb..4aca5500078 100644
--- a/community/perl-iptables-parse/APKBUILD
+++ b/community/perl-iptables-parse/APKBUILD
@@ -4,15 +4,12 @@
pkgname=perl-iptables-parse
_pkgreal=IPTables-Parse
pkgver=1.6.1
-pkgrel=3
+pkgrel=4
pkgdesc="Perl extension for parsing iptables and ip6tables firewall rulesets"
url="https://metacpan.org/release/IPTables-Parse/"
arch="noarch"
license="Artistic-1.0"
-cpandepends=""
-cpanmakedepends=""
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MR/MRASH/$_pkgreal-$pkgver.tar.gz"
@@ -20,25 +17,20 @@ builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
-
- cd "$builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ 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}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
- cd "$builddir"
- make test
+ make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}