1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-math-random-oo
6 pkgdesc="Consistent object-oriented interface for generating random numbers"
8 url="http://search.cpan.org/dist/Math-Random-OO/"
10 source=('http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Math-Random-OO-0.21.tar.gz')
11 md5sums=('3867a231685468a4252095612c5722cc')
12 sha256sums=('bd96976acf9a8361622049423e649f386d3d7d8ce7eda74fb4d3b9c3aca90950')
13 depends=('perl-class-accessor' 'perl-params-validate>=0.760.0' 'perl-test-mockrandom>=0.950.0' 'perl-test-simple' 'perl-test-number-delta>=0.140.0' 'perl>=5.0.6')
17 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
18 if [ ! -z "$_dir" ]; then
20 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22 make install DESTDIR="${pkgdir}" || return 1
25 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
26 if [ ! -z "$_dir" ]; then
28 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
30 ./Build install destdir=${pkgdir} || return 1
33 echo "error: failed to detect build method for $pkgname"
34 echo "you may be able to fix this by editing the PKGBUILD"
38 # remove perllocal.pod and .packlist
39 find ${pkgdir} -name perllocal.pod -delete
40 find ${pkgdir} -name .packlist -delete
43 # vim:set ts=2 sw=2 et: