diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 15:31:20 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | 8a167d477e3fa8f810d2d97e7779e542a39aafc6 (patch) | |
tree | e69e05c84c7ac7aff7859309d49e247ea8c5c81c /testing | |
parent | 8e11838ae62e7bf18c84780fc99fb4d238c54d8e (diff) | |
download | aports-8a167d477e3fa8f810d2d97e7779e542a39aafc6.tar.bz2 aports-8a167d477e3fa8f810d2d97e7779e542a39aafc6.tar.xz |
testing/perl-crypt-urandom: new aport
Provide non blocking randomness
http://search.cpan.org/dist/Crypt-URandom/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-crypt-urandom/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-crypt-urandom/APKBUILD b/testing/perl-crypt-urandom/APKBUILD new file mode 100644 index 0000000000..9d2188bdfb --- /dev/null +++ b/testing/perl-crypt-urandom/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-crypt-urandom +_pkgreal=Crypt-URandom +pkgver=0.36 +pkgrel=0 +pkgdesc="Provide non blocking randomness" +url="http://search.cpan.org/dist/Crypt-URandom/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DD/DDICK/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="59e6773d808f34f242f2520ed236faeed804d623fbcf4f1b8e7b39ed215ff1cde9f76ce4a9f5f260dfac42b036229a56cdb49a7f6856d5e943ed4d50e3392adc Crypt-URandom-0.36.tar.gz" |