From e7689e080faea25a56bb8dc2732cb74fb95df895 Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 28 Jun 2019 01:21:51 -0300 Subject: testing/perl-exporter-lite: fix url fix license --- testing/perl-exporter-lite/APKBUILD | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'testing/perl-exporter-lite') diff --git a/testing/perl-exporter-lite/APKBUILD b/testing/perl-exporter-lite/APKBUILD index d64367bf33..3c3c9a89bf 100644 --- a/testing/perl-exporter-lite/APKBUILD +++ b/testing/perl-exporter-lite/APKBUILD @@ -4,36 +4,30 @@ pkgname=perl-exporter-lite _pkgreal=Exporter-Lite pkgver=0.08 -pkgrel=0 +pkgrel=1 pkgdesc="Lightweight exporting of functions and variables" -url="http://search.cpan.org/dist/Exporter-Lite/" +url="https://metacpan.org/release/Exporter-Lite" arch="noarch" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +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/N/NE/NEILB/$_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 && make test } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3