aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:36:42 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:36:42 +0000
commitda98faf81547f4f30f0a3d5b11a2a5a0334c949e (patch)
tree38b94389354aa532d73da7c9746e28273e7064af
parent2a76ac8b20fca9977eb079726f36559901bc83df (diff)
downloadaports-da98faf81547f4f30f0a3d5b11a2a5a0334c949e.tar.gz
aports-da98faf81547f4f30f0a3d5b11a2a5a0334c949e.tar.bz2
aports-da98faf81547f4f30f0a3d5b11a2a5a0334c949e.tar.xz
community/perl-test-taint: modernize and add check
-rw-r--r--community/perl-test-taint/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-test-taint/APKBUILD b/community/perl-test-taint/APKBUILD
index 397923b468..cd75a1f2f2 100644
--- a/community/perl-test-taint/APKBUILD
+++ b/community/perl-test-taint/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-test-taint
_pkgreal=Test-Taint
pkgver=1.06
-pkgrel=4
+pkgrel=5
pkgdesc="Checks for taintedness of variables"
url="http://search.cpan.org/dist/Test-Taint/"
arch="all"
@@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make #&& make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="cb639c250f2030262a562ce3376219b0 Test-Taint-1.06.tar.gz"
-sha256sums="721b51ca91d248ea5ff4f99ca49c05a080e6f0fc9f7983e96121b7775ab93107 Test-Taint-1.06.tar.gz"
sha512sums="58221b0145d9b908994c093168ca547a18cd56113f4923a4662bb9c113635378740363914d1fd43602f15c76a23cfe26d0682ed6ce22836d712692f439e782c2 Test-Taint-1.06.tar.gz"