diff options
author | root <root@rshg047.dnsready.net> | 2011-06-01 22:46:45 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-01 22:46:45 +0000 |
commit | e7b9c9697e6a50c3b9e78941fa95ba11c716d238 (patch) | |
tree | 4df601d78b5a2009ebeea5f01afe1f6e2beb8ca4 /testing/perl-netaddr-ip | |
parent | 311d0420d77867bdb1066d38743e68e596a17ce5 (diff) |
Wed Jun 1 22:46:45 UTC 2011
Diffstat (limited to 'testing/perl-netaddr-ip')
-rw-r--r-- | testing/perl-netaddr-ip/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/perl-netaddr-ip/PKGBUILD b/testing/perl-netaddr-ip/PKGBUILD new file mode 100644 index 000000000..fa6549515 --- /dev/null +++ b/testing/perl-netaddr-ip/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 125270 2011-05-25 19:19:11Z foutrelis $ +# Maintainer: Dale Blount <dale@archlinux.org> +# Contributor: Dale Blount <dale@archlinux.org> +# Contributor: Francois Charette <francois.archlinux.org> + +pkgname=perl-netaddr-ip +_realname=NetAddr-IP +pkgver=4.037 +pkgrel=2 +pkgdesc="Perl module to manage IP addresses and subnets" +arch=(i686 x86_64) +license=('PerlArtistic' 'GPL') +depends=('perl>=5.10.0') +options=(!emptydirs) +url="http://search.cpan.org/dist/${_realname}/" +source=(http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/${_realname}-${pkgver}.tar.gz) +md5sums=('d966eac6b5941af3f7c1fad839569cb4') + +build() { + cd ${srcdir}/${_realname}-${pkgver} + # install module in vendor directories. + perl Makefile.PL INSTALLDIRS=vendor + make + make test +} + +package() { + cd ${srcdir}/${_realname}-${pkgver} + make install DESTDIR=${pkgdir} + + # remove perllocal.pod and .packlist + find ${pkgdir} -name perllocal.pod -delete + find ${pkgdir} -name .packlist -delete +} |