diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-30 08:18:49 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-30 08:18:49 +0000 |
commit | e1f6be12a08d5193abe66ebed1b3f36136dce171 (patch) | |
tree | aaf5c21ad24c5657d632f621e3d0d83c5dd916b4 /community | |
parent | c9c599f319685aa4afa70d04d343d5e58cb006a0 (diff) | |
download | aports-e1f6be12a08d5193abe66ebed1b3f36136dce171.tar.bz2 aports-e1f6be12a08d5193abe66ebed1b3f36136dce171.tar.xz |
community/lua-toml: build for arches where luajit is not avail but don't check()
Diffstat (limited to 'community')
-rw-r--r-- | community/lua-toml/APKBUILD | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/community/lua-toml/APKBUILD b/community/lua-toml/APKBUILD index 315249b602..ec3e32484a 100644 --- a/community/lua-toml/APKBUILD +++ b/community/lua-toml/APKBUILD @@ -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() { |