aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-data-entropy
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 13:54:47 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commit2873f9e99e7aa13a884cd45422c83a7c788afd15 (patch)
treeecfb75df3136ddeec655ef95bae8b2fe9487c242 /testing/perl-data-entropy
parentee1e8bec24a78be74f3d62f599e5149a164f74f1 (diff)
downloadaports-2873f9e99e7aa13a884cd45422c83a7c788afd15.tar.bz2
aports-2873f9e99e7aa13a884cd45422c83a7c788afd15.tar.xz
testing/perl-data-entropy: new aport
http://search.cpan.org/dist/Data-Entropy/
Diffstat (limited to 'testing/perl-data-entropy')
-rw-r--r--testing/perl-data-entropy/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-data-entropy/APKBUILD b/testing/perl-data-entropy/APKBUILD
new file mode 100644
index 0000000000..25be36d398
--- /dev/null
+++ b/testing/perl-data-entropy/APKBUILD
@@ -0,0 +1,47 @@
+# 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-data-entropy
+_pkgreal=Data-Entropy
+pkgver=0.007
+pkgrel=0
+pkgdesc="entropy (randomness) management"
+url="http://search.cpan.org/dist/Data-Entropy/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-data-float perl-http-lite perl-params-classify perl-crypt-rijndael"
+cpanmakedepends="perl-data-float perl-crypt-rijndael"
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+sha512sums="f845fabcac67ab16d44f8bbefa0fc09df171efd6cd9ae2f2ee7e189cbb707cf074705763a022941cbfdda5ab4e03b85eacdb7942a504644a40970c42b5a7e0b9 Data-Entropy-0.007.tar.gz"