summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b07db4d27a4834968c3b0222449c506beabbcac (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
# Contributor: Brian Bidulock <bidulock@openss7.org>
# Contributor: Eduardo Reveles <me@osiux.ws>

pkgname=perl-net-ping
_cpanname=Net-Ping
_module=Net::Ping
pkgver=2.41
pkgrel=2
pkgdesc="$_module - check a remote host for reachability"
arch=('any')
url="https://metacpan.org/release/$_cpanname"
license=('unknown')
source=("http://cpan.metacpan.org/authors/id/S/SM/SMPETERS/${_cpanname}-${pkgver}.tar.gz")
depends=('perl-test')
options=('!emptydirs')
md5sums=('e8e1709d3ec8f697e7aa5ca481b1317a')

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

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

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

# vim:set ts=2 sw=2 et: