1 # This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
4 pkgname=perl-ip-country
8 pkgdesc="fast lookup of country codes from IP addresses "
10 url="http://search.cpan.org/~NWETTERS/${_cpanname}"
11 license=('GPL' 'PerlArtistic')
12 depends=('perl-geography-countries')
13 #makedepends=('perl-extutils-makemaker')
14 options=('!emptydirs')
15 source=(http://www.cpan.org/authors/id/N/NW/NWETTERS/${_cpanname}-${pkgver}.tar.gz)
16 md5sums=('32932280ee4729145e85e08dad5ab8c6')
19 cd $srcdir/${_cpanname}-${pkgver}
20 sed -i '/^auto_install/d' Makefile.PL
21 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
23 make install DESTDIR=$pkgdir || return 1
24 find $pkgdir -name '.packlist' -delete
25 find $pkgdir -name '*.pod' -delete