ayaports/user/perl-math-random-secure/APKBUILD

44 lines
1.1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_cpaname=Math-Random-Secure
_cpanauthor=FREW
pkgname=perl-math-random-secure
pkgver=0.080001
pkgrel=1
pkgdesc="Perl Math::Random::Secure CPAN module - cryptographically-secure, cross-platform replacement for rand()"
arch="!armv7 noarch"
url="http://search.cpan.org/dist/$_cpaname/"
license="GPL"
options="!check" # Failure
makedepends="
perl-moo
perl-moose
perl-test-sharedfork
perl-test-warn
"
depends="
perl-crypt-random-source
perl-math-random-isaac
"
source="http://search.cpan.org/CPAN/authors/id/${_cpanauthor::1}/${_cpanauthor::2}/$_cpanauthor/$_cpaname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir"/$_cpaname-$pkgver
build() {
perl Makefile.PL
make
}
check() {
make test
}
package() {
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
# provided by perl-crypt-random-source
rm "$pkgdir"/usr/lib/*/core_perl/perllocal.pod
}
sha512sums="
2092fc01e224ebb438f927f72e835095efdb8790d8f4ef845fc7c4af3e20a05848e7632b0e752221bbe76cebbfa8186638043457ff4f80ff5727a42baec317ce Math-Random-Secure-0.080001.tar.gz
"