summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8e91bc2799933894c6b77012d6abeb912425414 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Weirch Sodora <sodora at gmail dot com>

pkgname=perl-net-mac-vendor
_cpanname=Net-MAC-Vendor
_module=Net::MAC::Vendor
pkgver=1.268
pkgrel=2
pkgdesc="$_module - look up the vendor for a MAC"
arch=('any')
url="https://metacpan.org/release/$_cpanname"
license=('GPL' 'PerlArtistic')
depends=('perl-libwww' 'perl-lwp-protocol-https' 'perl-mojolicious')
options=('!emptydirs')
source=("http://cpan.metacpan.org/authors/id/E/ET/ETHER/${_cpanname}-${pkgver}.tar.gz")
md5sums=('01bd2053d303e554ae7005830d72cceb')

build() {
  cd $_cpanname-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

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

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