updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / perl-data-validate-ip / PKGBUILD
blob08084260c87398016f5dd166bbad7a49e7a3f50f
1 # CPAN Name  : Data-Validate-IP
2 # Contributor: Anonymous
3 # Generator  : CPANPLUS::Dist::Arch 1.15
5 pkgname='perl-data-validate-ip'
6 pkgver='0.14'
7 pkgrel='1'
8 pkgdesc="ipv4 and ipv6 validation methods"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl-net-netmask')
13 makedepends=()
14 url='http://search.cpan.org/dist/Data-Validate-IP'
15 source=('http://search.cpan.org/CPAN/authors/id/N/NE/NEELY/Data-Validate-IP-0.14.tar.gz')
16 md5sums=('bc47f6175e2324a411d05607720ebaaf')
17 _distdir="${srcdir}/Data-Validate-IP-0.14"
19 build() {
20   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
21       PERL_AUTOINSTALL=--skipdeps                            \
22       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
23       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
24       MODULEBUILDRC=/dev/null
26     cd "$_distdir"
27     /usr/bin/perl Makefile.PL
28     make
29   )
32 check() {
33   cd "$_distdir"
34   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
35     make test
36   )
39 package() {
40   cd "$_distdir"
41   make install
42   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
45 # Local Variables:
46 # mode: shell-script
47 # sh-basic-offset: 2
48 # End:
49 # vim:set ts=2 sw=2 et: