summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b5d9f2c3701bafdacc0fd35517d6f36b4567b8e (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Alessandro Nakamuta <alessandro dot nakamuta at archlinux dot com dot br>

pkgname=perl-net-pcaputils
_cpanname=Net-PcapUtils
pkgver=0.01
pkgrel=3
pkgdesc="Perl/CPAN Module Net::PcapUtils"
arch=('any')
url="https://metacpan.org/release/$_cpanname"
license=("GPL" "PerlArtistic")
options=('!emptydirs')
source=("http://cpan.metacpan.org/authors/id/T/TI/TIMPOTTER/${_cpanname}-${pkgver}.tar.gz")
depends=('perl-net-pcap')
md5sums=('eeba67266dbe155b504df3c2de1d657f')

build() {
  cd "${srcdir}/${_cpanname}-${pkgver}"

  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}
package() {
  cd "${srcdir}/${_cpanname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
  
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}