aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-fun
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-03-30 07:04:01 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-30 07:04:01 +0000
commitdd4a518789c77619730ceb2f2d4ddca54c050ba6 (patch)
treea0f154adca66173e41249d69056c1380db3af2c5 /community/lua-fun
parent32edd945e9fa50fff5209572f2da2c5d3a9120da (diff)
downloadaports-dd4a518789c77619730ceb2f2d4ddca54c050ba6.tar.bz2
aports-dd4a518789c77619730ceb2f2d4ddca54c050ba6.tar.xz
community/lua-fun: don't check() where luajit is required and not avail
Diffstat (limited to 'community/lua-fun')
-rw-r--r--community/lua-fun/APKBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/community/lua-fun/APKBUILD b/community/lua-fun/APKBUILD
index 9ef7b283ee..826cc6c45c 100644
--- a/community/lua-fun/APKBUILD
+++ b/community/lua-fun/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-fun
_pkgname=luafun
pkgver=0.1.3
-pkgrel=2
+pkgrel=3
pkgdesc="Functional programming library"
url="http://rtsisyk.github.io/luafun/"
arch="noarch"
@@ -22,11 +22,15 @@ done
check() {
cd "$builddir"
-
- local lver; for lver in $_luaversions jit; do
- msg "Testing on Lua $lver"
- lua$lver tests/runtest tests/*.lua || return 1
- done
+ # luajit not avail for selected arches
+ if printf "$checkdepends\n" | grep -q "luajit"; then
+ if [ "$CARCH" != "ppc64le" ] && [ "$CARCH" != "s390x" ]; then
+ local lver; for lver in $_luaversions jit; do
+ msg "Testing on Lua $lver"
+ lua$lver tests/runtest tests/*.lua || return 1
+ done
+ fi
+ fi
}
package() {