updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-net-ping / PKGBUILD
blobeec5e468b5151aaef5aed141ae4edf86740edc23
1 # Contributor: Eduardo Reveles <me@osiux.ws>
2 # Generated by Xyne::Arch::CPAN 0.07
4 pkgname=perl-net-ping
5 pkgver=2.360.0
6 pkgrel=1
7 pkgdesc="CPAN package (no description found)"
8 arch=('i686' 'x86_64')
9 url="http://search.cpan.org/dist/Net-Ping/"
10 license=('unknown')
11 source=('http://search.cpan.org/CPAN/authors/id/S/SM/SMPETERS/Net-Ping-2.36.tar.gz')
12 md5sums=('3429c6d98dadb127b352d04c58cda266')
13 sha256sums=('ecd840ab25394679da662856d9b3b813c255882407e2250068eee2eebde45ef8')
14 depends=('perl-test')
15 options=(!emptydirs)
17 build() {
18   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
19   if [ ! -z "$_dir" ]; then
20     cd $(dirname "$_dir")
21     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22     make  || return 1
23     make install DESTDIR="${pkgdir}" || return 1
25   else
26   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
27   if [ ! -z "$_dir" ]; then
28     cd $(dirname "$_dir")
29     PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
30     ./Build  || return 1
31     ./Build install destdir=${pkgdir} || return 1
33   else
34     echo "error: failed to detect build method for $pkgname"
35     echo "you may be able to fix this by editing the PKGBUILD"
36     return 1
37   fi fi
39   # remove perllocal.pod and .packlist
40   find ${pkgdir} -name perllocal.pod -delete
41   find ${pkgdir} -name .packlist -delete
44 # vim:set ts=2 sw=2 et: