aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-math-random-mt-auto/APKBUILD
blob: 79c8c49b42ef4674ff56384a7f19196d573f818a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"