updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-math-units / PKGBUILD
blob20e951e93e4a064e36bfe39f0b0e8570ba78f075
1 # Contributor: Link Dupont <link.dupont@gmail.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.00
3 pkgname='perl-math-units'
4 pkgver='1.3'
5 pkgrel='1'
6 pkgdesc="Unit conversion"
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl')
11 url='http://search.cpan.org/dist/Math-Units'
12 source=('http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/Math-Units-1.3.tar.gz')
13 md5sums=('3674c769147eacdc0d22957d8288c104')
15 build() {
16   DIST_DIR="${srcdir}/Math-Units-1.3"
17   export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1 \
18     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"
20   { cd "$DIST_DIR" &&
21     perl Makefile.PL &&
22     make &&
23     make test &&
24     make install;
25   } || return 1;
27   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete