blob: 14ff5547c34d5c024cc48bbc5b3641d50cf3bf31 (
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: FantasqueX < fantasquex at gmail dot com >
pkgname=perl-net-whois-ip
pkgver=1.19
pkgrel=1
pkgdesc="Perl extension for looking up the whois information for ip addresses"
_dist=Net-Whois-IP
arch=(any)
url="https://metacpan.org/pod/Net::Whois::IP"
license=('unknown')
depends=(perl)
makedepends=(perl-regexp-ipv6)
source=("https://cpan.metacpan.org/authors/id/B/BS/BSCHMITZ/$_dist-$pkgver.tar.gz")
sha256sums=('f09bdfa0f1d2665b534826b5f3a8662349930eed2998efe4d8dbf98813147222')
build() {
cd $_dist-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
perl Makefile.PL
make
}
check() {
cd $_dist-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd $_dist-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|