diff options
-rw-r--r-- | user/perl-math-random-isaac/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-math-random-isaac/APKBUILD b/user/perl-math-random-isaac/APKBUILD new file mode 100644 index 000000000..fe0543c74 --- /dev/null +++ b/user/perl-math-random-isaac/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-math-random-isaac +_pkgname=Math-Random-ISAAC +pkgver=1.004 +pkgrel=0 +pkgdesc="Perl interface to the ISAAC PRNG algorithm" +url="https://metacpan.org/release/Math-Random-ISAAC" +arch="noarch" +license="Public-Domain" +depends="" +checkdepends="perl-test-nowarnings" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/J/JA/JAWNSY/Math-Random-ISAAC-$pkgver.tar.gz" +builddir="$srcdir/Math-Random-ISAAC-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="98fdfb28b207b4afe72ab82a2b564b06c5daaac15cdab2ce2ef698b16c0dcf5b23ac28fbebe170d2c6c7239fe6c97f634e5c03a8f2bd0aeb8369d0008b9ae0a2 Math-Random-ISAAC-1.004.tar.gz" |