Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (31 sloc) 1.25 KB
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=perl-netpacket
pkgver=1.7.0
pkgrel=1
pkgdesc="Assemble/disassemble network packets at the protocol level"
arch=('any')
url='http://search.cpan.org/dist/NetPacket/'
license=('custom')
makedepends=('perl-module-build>=0.360.100')
provides=('perl-netpacket-arp=1.6.0' 'perl-netpacket-ethernet=1.6.0'
'perl-netpacket-icmp=1.6.0' 'perl-netpacket-icmpv6=1.6.0'
'perl-netpacket-igmp=1.6.0' 'perl-netpacket-ip=1.6.0'
'perl-netpacket-ipv6=1.6.0' 'perl-netpacket-pflog=1.6.0'
'perl-netpacket-tcp=1.6.0' 'perl-netpacket-udp=1.6.0')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/NetPacket-$pkgver.tar.gz")
sha512sums=('6629206f4e80e8d1ca5120e403fc66358e9fa834f00a6773fc76ba0a7ea3b492a3bdfab0c6a8ab4ec6a9238074e533729cda3a5f13b6f49d1454fb8f59ec432c')
build() {
cd "$srcdir/NetPacket-$pkgver"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "$srcdir/NetPacket-$pkgver"
make install DESTDIR=${pkgdir}
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Remove perllocal.pod and .packlist.
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}