1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=perl-math-random
5 pkgdesc='Some basic numeric stats on vectors'
7 url='http://search.cpan.org/dist/Math-Random/'
9 depends=('perl>=5.10.0')
17 source=("http://search.cpan.org/CPAN/authors/id/G/GR/GROMMEL/Math-Random-$pkgver.tar.gz")
20 cd "$srcdir/Math-Random-$pkgver"
22 # Setting these env variables overwrites any command-line-options we don't want...
23 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
24 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
25 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
26 MODULEBUILDRC=/dev/null
28 # If using Makefile.PL
29 { /usr/bin/perl Makefile.PL &&
32 make install; } || return 1
34 # remove perllocal.pod and .packlist
35 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
37 # vim:set ts=2 sw=2 et:
38 md5sums=('55d7579c670ecd180f71fd157a2d2070')