1 # Contributor: Eduardo Reveles <me@osiux.ws>
3 # Generated by Xyne::Arch::CPAN 0.07
8 pkgdesc="Assemble/disassemble network packets at the protocol level"
10 url="http://search.cpan.org/dist/NetPacket/"
12 source=('http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/NetPacket-1.2.0.tar.gz')
13 md5sums=('c3a09b48bc55cf366b594e30860d0a82')
14 sha256sums=('9863343ef0462fef3986ff09b3b2abf88563999647845d25179279bc817ff362')
15 makedepends=('perl-module-build>=0.360.100')
16 provides=('perl-netpacket-arp=0.43.1' 'perl-netpacket-ethernet=0.43.1' 'perl-netpacket-icmp=0.43.1' 'perl-netpacket-icmpv6=0.43.1' 'perl-netpacket-igmp=0.43.1' 'perl-netpacket-ip=0.43.1' 'perl-netpacket-ipv6=0.43.1' 'perl-netpacket-pflog=0.43.1' 'perl-netpacket-tcp=0.43.1' 'perl-netpacket-udp=0.43.1')
20 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
21 if [ ! -z "$_dir" ]; then
23 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
25 make install DESTDIR="${pkgdir}" || return 1
28 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
29 if [ ! -z "$_dir" ]; then
31 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
33 ./Build install destdir=${pkgdir} || return 1
36 echo "error: failed to detect build method for $pkgname"
37 echo "you may be able to fix this by editing the PKGBUILD"
41 # remove perllocal.pod and .packlist
42 find ${pkgdir} -name perllocal.pod -delete
43 find ${pkgdir} -name .packlist -delete
46 # vim:set ts=2 sw=2 et: