aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-27 23:55:56 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-27 23:55:56 -0300
commit8937fe52bb888fedb301e9fb8dae0f0f783c90e3 (patch)
treede05f17583e6612853bd80adeb0bcfe8f39e3dbc
parentc983c3dabbe27ba93719ebf758e0005fb5e903b0 (diff)
downloadaports-8937fe52bb888fedb301e9fb8dae0f0f783c90e3.tar.bz2
aports-8937fe52bb888fedb301e9fb8dae0f0f783c90e3.tar.xz
testing/perl-context-preserve: fix url fix license
-rw-r--r--testing/perl-context-preserve/APKBUILD15
1 files changed, 4 insertions, 11 deletions
diff --git a/testing/perl-context-preserve/APKBUILD b/testing/perl-context-preserve/APKBUILD
index a04351d22a..53a2c16b98 100644
--- a/testing/perl-context-preserve/APKBUILD
+++ b/testing/perl-context-preserve/APKBUILD
@@ -4,16 +4,13 @@
pkgname=perl-context-preserve
_pkgreal=Context-Preserve
pkgver=0.03
-pkgrel=0
+pkgrel=1
pkgdesc="Run code after a subroutine call, preserving the context"
-url="http://search.cpan.org/dist/Context-Preserve/"
+url="https://metacpan.org/release/Context-Preserve"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpancheckdepends="perl-test-exception"
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
@@ -22,25 +19,21 @@ 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}')
make
}
package() {
- cd "$builddir"
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
}