# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman # Maintainer: Jose Riha pkgname=perl-math-polygon-tree _cpanname=Math-Polygon-Tree pkgver=0.08 pkgrel=1 pkgdesc="Fast check if object is inside polygon" arch=('any') url="http://search.cpan.org/~LIOSHA/${_cpanname}" license=('GPL' 'PerlArtistic') makedepends=('perl-extutils-makemaker') options=('!emptydirs') source=(http://www.cpan.org/authors/id/L/LI/LIOSHA/Math-Polygon-Tree-${pkgver}.tar.gz) md5sums=('06fba76c0a2fd63faf159358a5149397') build() { cd $srcdir/${_cpanname}-${pkgver} sed -i '/^auto_install/d' Makefile.PL PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } package() { cd $srcdir/${_cpanname}-${pkgver} make install DESTDIR=$pkgdir find $pkgdir -name '.packlist' -delete find $pkgdir -name '*.pod' -delete }