summaryrefslogtreecommitdiffstats
path: root/testing/perl-iptables-parse/APKBUILD
blob: e1d35af703fe7e2bca92f94c90c337350b284822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: IT Offshore <developer@it-offshore.co.uk>
# Maintainer: IT Offshore <developer@it-offshore.co.uk>
pkgname=perl-iptables-parse
_pkgreal=IPTables-Parse
pkgver=1.1
pkgrel=0
pkgdesc="Perl extension for parsing iptables and ip6tables firewall rulesets"
url="http://search.cpan.org/dist/IPTables-Parse/"
arch="noarch"
license="artistic_1"
cpandepends=""
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() {
	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 && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="e258a32c73f99697a6f52276bda15878  IPTables-Parse-1.1.tar.gz"
sha256sums="750ffb2edf09b7616cf5324fb5f770e8e2dafcdc779ea80eb7ff870cbf83adc3  IPTables-Parse-1.1.tar.gz"
sha512sums="7ebd035cefd982317fe0d4876b928c2b425f7e45578ef4bf299314e735260aae7ca9377ffd48f3f6097a36ab4154a9c996383f57fc1cb80ca66fc3ebf5e07059  IPTables-Parse-1.1.tar.gz"