# $Id: PKGBUILD 143938 2011-11-30 21:38:22Z giovanni $ # Maintainer: Giovanni Scafora # Contributor: François Charette pkgname=perl-math-round pkgver=0.06 pkgrel=5 pkgdesc="Perl extension for rounding numbers" arch=('any') url="http://search.cpan.org/dist/Math-Round" license=('GPL' 'PerlArtistic') depends=('perl') options=('!emptydirs') source=("http://www.cpan.org/authors/id/G/GR/GROMMEL/Math-Round-$pkgver.tar.gz") md5sums=('552cef2753b246f97a6e20d8dee66e7c') build() { cd "${srcdir}/Math-Round-${pkgver}" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "${srcdir}/Math-Round-${pkgver}" make test } package() { cd "${srcdir}/Math-Round-${pkgver}" make install DESTDIR=${pkgdir} find ${pkgdir} -name '.packlist' -delete find ${pkgdir} -name '*.pod' -delete }