aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-path-tiny
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 13:07:06 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 13:31:30 +0000
commit3ce302210e5b0a911d9657215d691b8fe4e5b9b5 (patch)
tree778ae8d17fb65f669c60b8d5eeeb3aa43bb87d58 /community/perl-path-tiny
parenta439676586c0e22b38559c0cfb70d81123930b3a (diff)
downloadaports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.bz2
aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.xz
community/perl-[n-s]*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir - add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-path-tiny')
-rw-r--r--community/perl-path-tiny/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/community/perl-path-tiny/APKBUILD b/community/perl-path-tiny/APKBUILD
index 6fd88adde3..ded5e18289 100644
--- a/community/perl-path-tiny/APKBUILD
+++ b/community/perl-path-tiny/APKBUILD
@@ -4,13 +4,13 @@
pkgname=perl-path-tiny
_pkgreal=Path-Tiny
pkgver=0.104
-pkgrel=0
+pkgrel=1
pkgdesc="File path utility"
url="http://search.cpan.org/dist/Path-Tiny/"
arch="noarch"
license="apache_2_0"
cpandepends=""
-cpanmakedepends=" perl-test-mockrandom perl-test-failwarnings"
+cpanmakedepends="perl-test-mockrandom perl-test-failwarnings"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.t
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@@ -28,7 +28,12 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {