# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>

pkgname=perl-math-random-isaac
pkgver=1.004
pkgrel=1
pkgdesc="Perl interface to the ISAAC PRNG algorithm"
arch="noarch"
url='https://search.cpan.org/dist/Math-Random-ISAAC/'
license="GPL"
depends="perl"
makedepends="perl-test-nowarnings"
source="https://search.cpan.org/CPAN/authors/id/J/JA/JAWNSY/Math-Random-ISAAC-$pkgver.tar.gz"
builddir="$srcdir"/Math-Random-ISAAC-$pkgver
subpackages="$pkgname-doc"

build() {
	export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
	PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR=$pkgdir" \
	PERL_MB_OPT="--installdirs vendor --destdir $pkgdir" \
	MODULEBUILDRC=/dev/null
	perl Makefile.PL
	make
}

check() {
	make test
}

package() {
	make install
	find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}
sha512sums="
98fdfb28b207b4afe72ab82a2b564b06c5daaac15cdab2ce2ef698b16c0dcf5b23ac28fbebe170d2c6c7239fe6c97f634e5c03a8f2bd0aeb8369d0008b9ae0a2  Math-Random-ISAAC-1.004.tar.gz
"
