aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-toml
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 03:39:36 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 07:58:06 -0300
commitff3e3372856aa2fa1148fd0100af4fc31677805d (patch)
tree355b7c31411e2f9f76683375ad190375588081b7 /community/lua-toml
parent3c05debcc4899c33c66cf2884106f89f5d3321e6 (diff)
downloadaports-ff3e3372856aa2fa1148fd0100af4fc31677805d.tar.bz2
aports-ff3e3372856aa2fa1148fd0100af4fc31677805d.tar.xz
community/lua-toml: enable luajit on s390x
Diffstat (limited to 'community/lua-toml')
-rw-r--r--community/lua-toml/APKBUILD18
1 files changed, 4 insertions, 14 deletions
diff --git a/community/lua-toml/APKBUILD b/community/lua-toml/APKBUILD
index 94a1214273..f0b9d8c23b 100644
--- a/community/lua-toml/APKBUILD
+++ b/community/lua-toml/APKBUILD
@@ -7,16 +7,8 @@ pkgdesc="TOML decoder/encoder for Lua"
url="https://github.com/jonstoler/lua-toml"
arch="noarch"
license="Happy"
-depends=""
-checkdepends="lua-busted"
-source="$pkgname-$pkgver.tar.gz::https://github.com/jonstoler/$pkgname/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
-
-# luajit is not available for selected arches
-case "$CARCH" in
- s390x) _luajit="";;
- *) checkdepends="$checkdepends luajit" _luajit="jit";;
-esac
+checkdepends="lua-busted luajit"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jonstoler/lua-toml/archive/v$pkgver.tar.gz"
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
@@ -25,11 +17,9 @@ for _v in $_luaversions; do
done
check() {
- cd "$builddir"
-
- local lver; for lver in $_luaversions $_luajit; do
+ local lver; for lver in $_luaversions jit; do
msg "Testing on lua$lver"
- lua$lver /usr/bin/busted || return 1
+ lua$lver /usr/bin/busted
done
}