aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-needs
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 13:20:54 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-12 14:44:17 +0000
commita80ff2399551748d3a0063fa82cdeb8d8ea4b599 (patch)
tree41bcbfcad76df9df0295200625670b63d0c7df20 /main/perl-test-needs
parent75ba1c056ea64eb1aaa0a0f20019294a0c634d56 (diff)
downloadaports-a80ff2399551748d3a0063fa82cdeb8d8ea4b599.tar.bz2
aports-a80ff2399551748d3a0063fa82cdeb8d8ea4b599.tar.xz
main/perl-test-needs: modernise
Diffstat (limited to 'main/perl-test-needs')
-rw-r--r--main/perl-test-needs/APKBUILD30
1 files changed, 12 insertions, 18 deletions
diff --git a/main/perl-test-needs/APKBUILD b/main/perl-test-needs/APKBUILD
index 1eae6da8ac..eeab42394a 100644
--- a/main/perl-test-needs/APKBUILD
+++ b/main/perl-test-needs/APKBUILD
@@ -2,7 +2,7 @@
pkgname=perl-test-needs
_pkgreal="Test-Needs"
pkgver=0.002005
-pkgrel=0
+pkgrel=1
pkgdesc="Test::Needs perl module"
url="http://search.cpan.org"
arch="noarch"
@@ -13,29 +13,23 @@ install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Test-Needs-$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgreal-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$_pkgreal-$pkgver
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ 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="356634a56c99282e8059f290f5d534c8 Test-Needs-0.002005.tar.gz"
-sha256sums="5a4f33983586edacdbe00a3b429a9834190140190dab28d0f873c394eb7df399 Test-Needs-0.002005.tar.gz"
sha512sums="b3023067d1f8726b0ae2162d0b3722193a3b56d12d5c207cf9558f1552ae8ab554773b843d00f1c481857c259fa869b8fdaf5a4838ab0768f38726ddec4130c6 Test-Needs-0.002005.tar.gz"