aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 08:12:44 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 08:29:49 -0300
commit11389a9a4fee76de71152387fe48bce96834bdf3 (patch)
treeffe5b2f26ae3d33765b7c98b757d74953d37f3ab
parent48eff4fddeebc7659f47edc9b821f6f9396d93c0 (diff)
downloadaports-11389a9a4fee76de71152387fe48bce96834bdf3.tar.gz
aports-11389a9a4fee76de71152387fe48bce96834bdf3.tar.bz2
aports-11389a9a4fee76de71152387fe48bce96834bdf3.tar.xz
testing/lua-xml: enable luajit on s390x and fix license
-rw-r--r--testing/lua-xml/APKBUILD22
1 files changed, 5 insertions, 17 deletions
diff --git a/testing/lua-xml/APKBUILD b/testing/lua-xml/APKBUILD
index 0c62351436..bde718ad1a 100644
--- a/testing/lua-xml/APKBUILD
+++ b/testing/lua-xml/APKBUILD
@@ -3,24 +3,16 @@
pkgname=lua-xml
_rockname=xml
pkgver=1.1.3
-pkgrel=0
+pkgrel=1
pkgdesc="Very fast XML parser for Lua based on RapidXML"
url="https://github.com/lubyk/xml"
arch="all"
-license="MIT BSL-1.0"
+license="MIT"
depends="lua-lub"
-checkdepends="lua-lut"
-makedepends=""
-subpackages=""
-source="https://github.com/lubyk/$_rockname/archive/REL-$pkgver/$pkgname-$pkgver.tar.gz"
+checkdepends="lua-lut luajit"
+source="https://github.com/lubyk/$_rockname/archive/REL-$pkgver/lua-xml-$pkgver.tar.gz"
builddir="$srcdir/$_rockname-REL-$pkgver"
-# luajit is not available for s390x
-case "$CARCH" in
- s390x|aarch64) _luajit="";;
- *) checkdepends="$checkdepends luajit" _luajit="jit";;
-esac
-
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev luarocks$_v"
@@ -28,8 +20,6 @@ for _v in $_luaversions; do
done
build() {
- cd "$builddir"
-
local lver; for lver in $_luaversions; do
msg "Building for Lua $lver..."
@@ -44,9 +34,7 @@ build() {
}
check() {
- cd "$builddir"
-
- local lver; for lver in $_luaversions $_luajit; do
+ local lver; for lver in $_luaversions jit; do
msg "Testing on lua$lver"
ln -sf ../build-${lver/jit/5.1}/lib/lua/${lver/jit/5.1}/xml/core.so xml/