From 03b5c4a5bd15d7860a6fb92d293213a306b306ca Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Sun, 9 Jun 2019 14:59:53 +0200 Subject: community/perl-import-into: fix URL&License * modernize --- community/perl-import-into/APKBUILD | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'community/perl-import-into') diff --git a/community/perl-import-into/APKBUILD b/community/perl-import-into/APKBUILD index 499cbf2d17..66fd1c950d 100644 --- a/community/perl-import-into/APKBUILD +++ b/community/perl-import-into/APKBUILD @@ -4,41 +4,29 @@ pkgname=perl-import-into _pkgreal=Import-Into pkgver=1.002005 -pkgrel=1 +pkgrel=2 pkgdesc="Import packages into other packages" -url="http://search.cpan.org/dist/Import-Into/" +url="https://metacpan.org/pod/Import::Into" arch="noarch" -license="GPL PerlArtistic" -cpandepends="perl-module-runtime" -cpanmakedepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl perl-module-runtime" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - 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}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" - make test + make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3