blob: c8e7fa527a73a2053aea997cc2683788f8b243e2 (
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
35
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=perl-net-ping-external
_cpanname=Net-Ping-External
_module=Net::Ping::External
pkgver=0.15
pkgrel=4
pkgdesc="$_module - cross-platform interface to ICMP ping utilities"
arch=('any')
url="https://metacpan.org/release/$_cpanname"
license=("GPL" "PerlArtistic")
options=('!emptydirs')
source=("http://cpan.metacpan.org/authors/id/C/CH/CHORNY/${_cpanname}-${pkgver}.tar.gz")
depends=('perl' 'iputils')
md5sums=('e58f7e6886872febac88228ef7c94aee')
build() {
cd $_cpanname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd $_cpanname-$pkgver
make test
}
package() {
cd $_cpanname-$pkgver
make PERL_MM_USE_DEFAULT=1 DESTDIR="$pkgdir" install
find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
rm -fr "$pkgdir/usr/lib"
}
# vim:set ts=2 sw=2 et:
|