summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-27 20:44:12 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-27 20:44:12 +0100
commit39affe011f6364608a4527601183b038a2bd4f12 (patch)
tree64bf3595534669255f55fbd5e6b124c5647212d9
parentdb6e597452dd6d3c0ae427081edb259195e78110 (diff)
downloadaports-39affe011f6364608a4527601183b038a2bd4f12.zip
main/perl-test-taint: modernize
-rw-r--r--main/perl-test-taint/APKBUILD19
1 files changed, 7 insertions, 12 deletions
diff --git a/main/perl-test-taint/APKBUILD b/main/perl-test-taint/APKBUILD
index ac849c27098..2049b47a15e 100644
--- a/main/perl-test-taint/APKBUILD
+++ b/main/perl-test-taint/APKBUILD
@@ -4,39 +4,34 @@
pkgname=perl-test-taint
_pkgreal=Test-Taint
pkgver=1.08
-pkgrel=1
+pkgrel=2
pkgdesc="Checks for taintedness of variables"
-url="http://search.cpan.org/dist/Test-Taint/"
+url="https://metacpan.org/release/Test-Taint"
arch="all"
-license="GPL PerlArtistic"
-cpandepends=""
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpanmakedepends="perl-test-pod perl-test-pod-coverage"
-depends="$cpandepends"
+depends="perl"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/Test-Taint-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- 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
}
build() {
- cd "$builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ 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
}