aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-script
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-04-12 12:22:58 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-04-12 12:47:11 +0000
commit0acb47ca63fd1efd149dd0c3fa6dd3b46ee9db47 (patch)
tree59e03aca3c4e607c3a3f1158a8a72da6c1c2bfac /main/perl-test-script
parent29d6206f9c15495644115412ec0dcc7423835d53 (diff)
downloadaports-0acb47ca63fd1efd149dd0c3fa6dd3b46ee9db47.tar.bz2
aports-0acb47ca63fd1efd149dd0c3fa6dd3b46ee9db47.tar.xz
main/per-test-script: upgrade to 1.18, modernize APKBUILD
Diffstat (limited to 'main/perl-test-script')
-rw-r--r--main/perl-test-script/APKBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/main/perl-test-script/APKBUILD b/main/perl-test-script/APKBUILD
index b705d37ae2..c23696898d 100644
--- a/main/perl-test-script/APKBUILD
+++ b/main/perl-test-script/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-script
_pkgreal=Test-Script
-pkgver=1.16
+pkgver=1.18
pkgrel=0
pkgdesc="Basic cross-platform tests for scripts"
url="http://search.cpan.org/dist/Test-Script/"
@@ -15,22 +15,27 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+check() {
+ cd "$builddir"
+ make test
+}
prepare() {
- cd "$_builddir"
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="92af15cb6909dc59466abfd3061d667230c6e9a69970fc62df3e68c2c7e4d93d0ac3c26d1cdcdec92a5a414078921bcdd8827f8e05ac1241f36f81f5efbb4133 Test-Script-1.16.tar.gz"
+sha512sums="c89e1dd68ca275744ac12811f0d66d42f8fd76766cc515e11e0df2a82beb8cc052253e19b04f5bc86d45e3a9a2a1d6afd5cd4707e8a97f3a9d4c1dd28e4a72b4 Test-Script-1.18.tar.gz"