diff options
Diffstat (limited to 'community/perl-math-random-mt-auto/APKBUILD')
-rw-r--r-- | community/perl-math-random-mt-auto/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/perl-math-random-mt-auto/APKBUILD b/community/perl-math-random-mt-auto/APKBUILD new file mode 100644 index 0000000000..79c8c49b42 --- /dev/null +++ b/community/perl-math-random-mt-auto/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com> +pkgname=perl-math-random-mt-auto +_pkgreal=Math-Random-MT-Auto +pkgver=6.22 +pkgrel=3 +pkgdesc="Auto-seeded Mersenne Twister PRNGs" +url="http://search.cpan.org/dist/Math-Random-MT-Auto/" +arch="all" +license="unrestricted" +cpandepends="perl-exception-class perl-object-insideout" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="54e42c86369b6172b8b06a88206a89ce Math-Random-MT-Auto-6.22.tar.gz" +sha256sums="1f2ae9752ba908c126dc2bd3c27cb286543121997f87c5bce578fb2e7f51f01f Math-Random-MT-Auto-6.22.tar.gz" +sha512sums="9f15623c5a5ce7b7fde77d3189bce605145460b87b946a9c64928f7a5e506cfedd062539c0d2f9728f270825d4ead51d7b60cd76fb0aece2a2036eea576e87e5 Math-Random-MT-Auto-6.22.tar.gz" |