archrelease: copy trunk to testing-x86_64
[arch-packages.git] / perl-bytes-random-secure / trunk / PKGBUILD
blobd01d7b0b73e04904c7b08da68c31133854ab981a
1 # Maintainer: Florian Pritz <bluewind@xinu.at>
3 pkgname=perl-bytes-random-secure
4 pkgver=0.29
5 pkgrel=10
6 pkgdesc='Perl extension to generate cryptographically-secure random bytes.'
7 arch=(any)
8 license=(PerlArtistic GPL)
9 options=(!emptydirs)
10 depends=('perl>=5.6.0' perl-crypt-random-seed perl-math-random-isaac)
11 url=https://metacpan.org/release/Bytes-Random-Secure
12 source=("https://cpan.metacpan.org/authors/id/D/DA/DAVIDO/Bytes-Random-Secure-$pkgver.tar.gz")
13 md5sums=(53d95b7efc5962fe41835c7ab0f83475)
14 sha512sums=(72faf9e9fff1cc9641845d47b8dd1efb39861b4015246b169167d4f6050998e91d30b53d6a3e08daf91a838fcf29a05042073064204270de05b2f2ca9990fe64)
15 _ddir="Bytes-Random-Secure-$pkgver"
17 build()
19   cd "$srcdir/$_ddir"
20   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
21   unset PERL5LIB PERL_MM_OPT
22   /usr/bin/perl Makefile.PL
23   make
26 check()
28   cd "$srcdir/$_ddir"
29   export PERL_MM_USE_DEFAULT=1
30   unset PERL5LIB
31   make test
34 package()
36   cd "$srcdir/$_ddir"
37   make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
40 # Local Variables:
41 # mode: shell-script
42 # sh-basic-offset: 2
43 # End:
44 # vim:set ts=2 sw=2 et: