aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-04-14 23:13:01 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-04-26 19:24:24 +0000
commita9f070bf3dfa78b0761a11e93b9c2d1a601f99f2 (patch)
treec0654e4ae0d5da303f9b31f8d3bdc3c427296225
parent1573a3b77acc41a313cbab1ed6c9bac76a7d9bff (diff)
downloadaports-a9f070bf3dfa78b0761a11e93b9c2d1a601f99f2.tar.gz
aports-a9f070bf3dfa78b0761a11e93b9c2d1a601f99f2.tar.bz2
aports-a9f070bf3dfa78b0761a11e93b9c2d1a601f99f2.tar.xz
testing/lua-etlua: enable luajit on all arches
-rw-r--r--testing/lua-etlua/APKBUILD21
1 files changed, 8 insertions, 13 deletions
diff --git a/testing/lua-etlua/APKBUILD b/testing/lua-etlua/APKBUILD
index 25a34b5f78..133e4d2137 100644
--- a/testing/lua-etlua/APKBUILD
+++ b/testing/lua-etlua/APKBUILD
@@ -2,21 +2,16 @@
pkgname=lua-etlua
_rockname="${pkgname#lua-}"
pkgver=1.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="Embedded Lua templates"
url="https://github.com/leafo/etlua"
license="MIT"
arch="all"
makedepends="luarocks"
-checkdepends="lua-busted moonscript"
+checkdepends="lua-busted luajit moonscript"
source="$_rockname-$pkgver.tar.gz::https://github.com/leafo/$_rockname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_rockname-$pkgver"
-case "$CARCH" in
- aarch64) _luajit="";;
- *) checkdepends="$checkdepends luajit" _luajit="jit";;
-esac
-
_luaversions="5.1 5.2"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev luarocks$_v"
@@ -29,11 +24,11 @@ build() {
msg "Building for Lua $lver..."
luarocks-$lver \
- --deps-mode=none \
- LUA_INCDIR="$(pkg-config --variable=includedir lua$lver)" \
- LUA_LIBDIR="$(pkg-config --variable=libdir lua$lver)" \
- make --tree="./build" \
- "$_rockname-dev-1.rockspec"
+ --deps-mode=none \
+ LUA_INCDIR="$(pkg-config --variable=includedir lua$lver)" \
+ LUA_LIBDIR="$(pkg-config --variable=libdir lua$lver)" \
+ make --tree="./build" \
+ "$_rockname-dev-1.rockspec"
rm "./build/lib/luarocks/rocks-$lver/manifest"
done
@@ -42,7 +37,7 @@ build() {
check() {
mkdir .bin
- local lver; for lver in $_luaversions $_luajit; do
+ local lver; for lver in $_luaversions; do
msg "Testing on lua$lver..."
ln -sf "/usr/bin/lua$lver" ".bin/lua"
LUA_PATH="$builddir/?.lua;;" \