updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-ip-country / PKGBUILD
blob652f4c98536ee012eeb7f340aed8f08c3efcd4ed
1 # This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
2 # Contributor: 
4 pkgname=perl-ip-country
5 _cpanname=IP-Country
6 pkgver=2.27
7 pkgrel=1
8 pkgdesc="fast lookup of country codes from IP addresses "
9 arch=('any')
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')
18 build() {
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 
22   make || return 1
23   make install DESTDIR=$pkgdir || return 1
24   find $pkgdir -name '.packlist' -delete
25   find $pkgdir -name '*.pod' -delete