Commit e1f6be12 authored by Leonardo Arena's avatar Leonardo Arena

community/lua-toml: build for arches where luajit is not avail but don't check()

parent c9c599f3
......@@ -2,13 +2,18 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-toml
pkgver=1.0
pkgrel=2
pkgrel=3
pkgdesc="TOML decoder/encoder for Lua"
url="https://github.com/jonstoler/lua-toml"
arch="noarch !ppc64le !s390x"
arch="noarch"
license="Happy"
depends=""
checkdepends="luajit lua-busted"
_checkdepends="lua-busted"
if [ "$CARCH" == "s390x" ] && [ "$CARCH" == "ppc64le" ]; then
checkdepends="$_checkdepends"
else
checkdepends="$_checkdepends luajit"
fi
source="$pkgname-$pkgver.tar.gz::https://github.com/jonstoler/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
......@@ -20,11 +25,15 @@ done
check() {
cd "$builddir"
local lver; for lver in $_luaversions jit; do
msg "Testing on lua$lver"
lua$lver /usr/bin/busted || 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 /usr/bin/busted || return 1
done
fi
fi
}
package() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment