# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=perl-net-pcaputils _pkgname=Net-PcapUtils pkgver=0.01 pkgrel=10 pkgdesc='Perl/CPAN Module Net::PcapUtils' arch=('x86_64' 'aarch64') url='http://search.cpan.org/dist/Net-PcapUtils/' license=('GPL' 'PerlArtistic') options=('!emptydirs') source=("http://search.cpan.org/CPAN/authors/id/T/TI/TIMPOTTER/$_pkgname-$pkgver.tar.gz") depends=('perl' 'libpcap' 'glibc' 'perl-net-pcap') sha512sums=('19fa2215f6ee69005c585e7d381738c6a5fdbf6b09267a38014b7d4bd0f604ba21a7b16dd8d4aba20b8e290044c3a6ab1fc6f29070a666d7785a690bac228708') build() { cd "$_pkgname-$pkgver" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } package() { cd "$_pkgname-$pkgver" make DESTDIR="$pkgdir" install find $pkgdir -name '.packlist' -delete find $pkgdir -name '*.pod' -delete }