From 4943d7a56f88fd24c4c572d9dbe488ad0125a99b Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 28 Jun 2019 00:09:17 -0300 Subject: testing/perl-crypt-urandom: fix url fix license --- testing/perl-crypt-urandom/APKBUILD | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/testing/perl-crypt-urandom/APKBUILD b/testing/perl-crypt-urandom/APKBUILD index 9d2188bdfb..da781e0b86 100644 --- a/testing/perl-crypt-urandom/APKBUILD +++ b/testing/perl-crypt-urandom/APKBUILD @@ -4,43 +4,34 @@ pkgname=perl-crypt-urandom _pkgreal=Crypt-URandom pkgver=0.36 -pkgrel=0 +pkgrel=1 pkgdesc="Provide non blocking randomness" -url="http://search.cpan.org/dist/Crypt-URandom/" +url="https://metacpan.org/release/Crypt-URandom" arch="noarch" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends="" -cpancheckdepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" -checkdepends="$cpancheckdepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" 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 + default_prepare - 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 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } -- cgit v1.2.3