# Automatically generated by apkbuild-cpan, template 1
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=perl-math-random-mt-auto
_pkgreal=Math-Random-MT-Auto
pkgver=6.23
pkgrel=9
pkgdesc="Auto-seeded Mersenne Twister PRNGs"
url="https://metacpan.org/release/Math-Random-MT-Auto/"
arch="all"
license="BSD-3-Clause"
depends="perl-exception-class perl-object-insideout"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver

prepare() {
	default_prepare
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="3cdb0a1fee776f6aa91bb7a623bd5b0f2fafa6505fc83352c4b76bdb637b7eb94675fa87b32a0213a1e3baa90e60ddd6330c990f6581abb4dc3cdc7d6e7f8b80  Math-Random-MT-Auto-6.23.tar.gz"
