summaryrefslogtreecommitdiff
path: root/pcr/perl-iptables-parse/PKGBUILD
blob: 64e85e6ee15052c773f0d97e7162786a4393fa8a (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
# Contributor (Arch): Weirch Sodora <sodora@gmail.com>
# Maintainer: Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
# Contributor: Márcio Silva <coadde@parabola.nu>

pkgname=perl-iptables-parse
pkgver=1.4
pkgrel=1
pkgdesc="IPTables::Parse - Perl extension for parsing iptables and ip6tables firewall rulesets"
arch=('i686' 'x86_64' 'mips64el')
url="http://search.cpan.org/~mrash/IPTables-Parse/lib/IPTables/Parse.pm"
license=('Artistic2.0')
depends=('perl' 'iptables')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/M/MR/MRASH/IPTables-Parse-$pkgver.tar.gz)
md5sums=(bb8239ab098d90d9e83ed4402b0242b0)

build() {
  cd  $srcdir/IPTables-Parse-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
  make || return 1
}

package() {
  cd  $srcdir/IPTables-Parse-$pkgver
  make install DESTDIR=$pkgdir || return 1
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}