# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs setglobal pkgname = 'perl-math-random-isaac-xs' setglobal _pkgreal = 'Math-Random-ISAAC-XS' setglobal pkgver = '1.004' setglobal pkgrel = '0' setglobal pkgdesc = '"C implementation of the ISAAC PRNG algorithm'" setglobal url = '"http://search.cpan.org/dist/Math-Random-ISAAC-XS/'" setglobal arch = '"all'" setglobal license = '"unrestricted'" setglobal cpandepends = ''"" setglobal cpanmakedepends = '"perl-test-nowarnings'" setglobal cpancheckdepends = ''"" setglobal depends = $cpandepends setglobal makedepends = ""perl-dev perl-module-build $cpanmakedepends"" setglobal checkdepends = $cpancheckdepends setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://search.cpan.org/CPAN/authors/id/J/JA/JAWNSY/$_pkgreal-$pkgver.tar.gz"" setglobal builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { default_prepare || return 1 cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] perl Build.PL installdirs=vendor || return 1 } proc build { cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] ./Build } proc package { cd $builddir ./Build install destdir="$pkgdir" || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } proc check { cd $builddir ./Build test } setglobal sha512sums = '"40c46b5f247f585a407ef9f36b5874d9cf03ec05963a9d92d988ebd63daf1e37b1b51308845d4596f47b5ad7203953bcb7fbb421c905b526dbe99b246ccb4d87 Math-Random-ISAAC-XS-1.004.tar.gz'"