summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a80abfcd0fe502a8463cd0467372dd1a952ca74 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Pranay Kanwar <pranay.kanwar@gmail.com>

pkgname=perl-net-packet
_cpanname=Net-Packet
_module=Net::Packet
pkgver=3.28
pkgrel=1
pkgdesc="$_module - unified framework to send a receive packets"
arch=('any')
url="https://metacpan.org/release/${_cpanname}"
license=('GPL' 'PerlArtistic')
depends=('perl-net-ipv4addr' 'perl-bit-vector' 'perl-net-write>=1.00' 'perl-socket6' 'perl-net-pcap>=0.12' 'perl-net-libdnet' 'perl-class-gomor>=1.00' 'perl-net-ipv6addr')
makedepends=('perl-extutils-makemaker')
checkdepends=('perl-net-pcap')
options=('!emptydirs')
source=("http://cpan.metacpan.org/authors/id/G/GO/GOMOR/${_cpanname}-${pkgver}.tar.gz")
md5sums=('b21e17c707131e82cc3d0d044906b16e')

build() {
  cd "$srcdir/$_cpanname-$pkgver"
  sed -i '/^auto_install/d' Makefile.PL
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/$_cpanname-$pkgver"
  make test
}

package() {
  cd "$srcdir/$_cpanname-$pkgver"
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
}

# vim:set ts=2 sw=2 et: