| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-crypt-random-seed |
| 5 | pkgver=0.03 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Crypt-Random-Seed |
| 9 | pkgdesc="Provide strong randomness for seeding" |
| 10 | url="https://metacpan.org/release/Crypt-Random-Seed/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl" |
| 14 | subpackages="$pkgname-doc" |
| 15 | source="https://cpan.metacpan.org/authors/id/D/DA/DANAJ/Crypt-Random-Seed-$pkgver.tar.gz" |
| 16 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 17 | |
| 18 | build() { |
| 19 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 20 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 21 | INSTALLDIRS=vendor \ |
| 22 | NO_PACKLIST=1 \ |
| 23 | NO_PERLLOCAL=1 |
| 24 | make |
| 25 | } |
| 26 | |
| 27 | check() { |
| 28 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 29 | make test |
| 30 | } |
| 31 | |
| 32 | package() { |
| 33 | make DESTDIR="$pkgdir" install |
| 34 | } |
| 35 | |
| 36 | sha512sums=" |
| 37 | 5ee6ea67c325aa9693c96ef650e3888a599d3d7e25316f869808dc6e06b9dd86f1c200c9097939f74511e2ed59e48df1b28cc96e5f7988076d9f7f5d840a894e Crypt-Random-Seed-0.03.tar.gz |
| 38 | " |