Skip to content
Snippets Groups Projects
Commit a023a2cf authored by J0WI's avatar J0WI Committed by Rasmus Thomsen
Browse files

community/moonscript: enable luajit on all arches

parent aa98f414
No related branches found
No related tags found
1 merge request!6834Remove limits caused by luajit
......@@ -2,24 +2,18 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=moonscript
pkgver=0.5.0
pkgrel=0
pkgrel=1
pkgdesc="A language that compiles to Lua"
url="http://moonscript.org"
arch="noarch"
license="MIT"
depends="lua-alt-getopt lua-filesystem lua-lpeg"
checkdepends="lua-busted"
checkdepends="lua-busted luajit"
makedepends="luarocks"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/leafo/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$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
subpackages="$subpackages lua$_v-$pkgname:_subpackage"
......@@ -41,7 +35,7 @@ prepare() {
check() {
cd "$builddir"
local lver; for lver in $_luaversions $_luajit; do
local lver; for lver in $_luaversions; do
msg "Testing on lua$lver"
lua$lver /usr/bin/busted
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment