2024-11-01 14:05:29 +00:00
|
|
|
# Automatically generated by apkbuild-cpan, template 4
|
2023-01-11 13:23:51 +00:00
|
|
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
2024-11-01 14:05:29 +00:00
|
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
2023-01-11 13:23:51 +00:00
|
|
|
pkgname=perl-math-random-isaac-xs
|
|
|
|
pkgver=1.004
|
2024-11-01 14:05:29 +00:00
|
|
|
pkgrel=8
|
|
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
|
|
_pkgreal=Math-Random-ISAAC-XS
|
2023-01-11 13:23:51 +00:00
|
|
|
pkgdesc="C implementation of the ISAAC PRNG algorithm"
|
|
|
|
url="https://metacpan.org/release/Math-Random-ISAAC-XS/"
|
|
|
|
arch="all"
|
2024-11-01 14:05:29 +00:00
|
|
|
license="Public-Domain"
|
|
|
|
depends="perl"
|
|
|
|
makedepends="perl-dev perl-module-build"
|
|
|
|
checkdepends="perl-test-nowarnings"
|
2023-01-11 13:23:51 +00:00
|
|
|
subpackages="$pkgname-doc"
|
2024-11-01 14:05:29 +00:00
|
|
|
source="https://cpan.metacpan.org/authors/id/J/JA/JAWNSY/Math-Random-ISAAC-XS-$pkgver.tar.gz"
|
2023-01-11 13:23:51 +00:00
|
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
2024-11-01 14:05:29 +00:00
|
|
|
perl Build.PL \
|
|
|
|
--installdirs=vendor \
|
|
|
|
--create_packlist=0
|
2023-01-11 13:23:51 +00:00
|
|
|
./Build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
./Build test
|
|
|
|
}
|
|
|
|
|
2024-11-01 14:05:29 +00:00
|
|
|
package() {
|
|
|
|
./Build install --destdir="$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
40c46b5f247f585a407ef9f36b5874d9cf03ec05963a9d92d988ebd63daf1e37b1b51308845d4596f47b5ad7203953bcb7fbb421c905b526dbe99b246ccb4d87 Math-Random-ISAAC-XS-1.004.tar.gz
|
|
|
|
"
|