aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-warn
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-27 20:41:29 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-27 20:41:29 +0100
commit683150bd92e7d2c4756c9ee68e84761190082e23 (patch)
tree0632159dbdc6671df264222e54ab8c67ef6d7ccb /main/perl-test-warn
parent2bce0bbe0262f9403c2eaeedf0bf7cf52d3807e1 (diff)
downloadaports-683150bd92e7d2c4756c9ee68e84761190082e23.tar.gz
aports-683150bd92e7d2c4756c9ee68e84761190082e23.tar.bz2
aports-683150bd92e7d2c4756c9ee68e84761190082e23.tar.xz
main/perl-test-warn: modernize
Diffstat (limited to 'main/perl-test-warn')
-rw-r--r--main/perl-test-warn/APKBUILD18
1 files changed, 6 insertions, 12 deletions
diff --git a/main/perl-test-warn/APKBUILD b/main/perl-test-warn/APKBUILD
index bd8a69135c..97361cd5fd 100644
--- a/main/perl-test-warn/APKBUILD
+++ b/main/perl-test-warn/APKBUILD
@@ -4,40 +4,34 @@
pkgname=perl-test-warn
_pkgreal=Test-Warn
pkgver=0.36
-pkgrel=0
+pkgrel=1
pkgdesc="Perl extension to test methods for warnings"
-url="http://search.cpan.org/dist/Test-Warn/"
+url="https://metacpan.org/release/Test-Warn"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends="perl-sub-uplevel"
-cpanmakedepends=" "
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl-sub-uplevel"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/B/BI/BIGJ/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/B/BI/BIGJ/Test-Warn-$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}')
make
}
check() {
- cd "$builddir"
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}