# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-crypt-random-source
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Crypt-Random-Source
pkgver=0.14
pkgrel=0
pkgdesc="Get weak or strong random data from pluggable sources"
url="https://metacpan.org/release/Crypt-Random-Source/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-capture-tiny perl-module-find perl-module-runtime
	perl-moo perl-namespace-clean perl-sub-exporter perl-type-tiny
	"
makedepends="perl-module-build-tiny"
checkdepends="perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Crypt-Random-Source-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
25760ccfae42f44bd132915e3796042b43c1bc43195a97fc1236579c90b96957b3d86d2e68adde9d7dd486336f132982867413af251c66e527584e7309e0c729  Crypt-Random-Source-0.14.tar.gz
"
