aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-data-entropy
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-26 00:57:01 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-26 13:23:05 +0000
commitd8c57ecb506654ed1f892f854509de01a134e3a9 (patch)
tree5819b8af4e244117edc56d3bd826c198d6a092c2 /testing/perl-data-entropy
parent3d0c78870337974b5e9e3d922baa96671ac16105 (diff)
downloadaports-d8c57ecb506654ed1f892f854509de01a134e3a9.tar.bz2
aports-d8c57ecb506654ed1f892f854509de01a134e3a9.tar.xz
testing/perl-data-entropy: modernize, fix license
Closes GH-8117
Diffstat (limited to 'testing/perl-data-entropy')
-rw-r--r--testing/perl-data-entropy/APKBUILD18
1 files changed, 6 insertions, 12 deletions
diff --git a/testing/perl-data-entropy/APKBUILD b/testing/perl-data-entropy/APKBUILD
index 7381fd4cb1..88ef9775dd 100644
--- a/testing/perl-data-entropy/APKBUILD
+++ b/testing/perl-data-entropy/APKBUILD
@@ -4,43 +4,37 @@
pkgname=perl-data-entropy
_pkgreal=Data-Entropy
pkgver=0.007
-pkgrel=0
+pkgrel=1
pkgdesc="entropy (randomness) management"
url="http://search.cpan.org/dist/Data-Entropy/"
arch="noarch"
-license="GPL PerlArtistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
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 perl-module-build $cpanmakedepends"
+makedepends="perl-dev perl-module-build"
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
+ default_prepare
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- perl Build.PL installdirs=vendor || return 1
+ perl Build.PL installdirs=vendor
}
build() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build
}
package() {
- cd "$builddir"
- ./Build install destdir="$pkgdir" || return 1
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
./Build test
}