mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
main/lua-feedparser: add check
This commit is contained in:
parent
9c78c1b9f5
commit
e8e65cbf6f
@ -13,11 +13,27 @@ replaces="$pkgname-common" # for backward compatibility
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/slact/$pkgname/archive/$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# luajit is not available for selected arches
|
||||
case "$CARCH" in
|
||||
s390x) _luajit="";;
|
||||
*) checkdepends="$checkdepends luajit" _luajit="jit";;
|
||||
esac
|
||||
|
||||
_luaversions="5.1 5.2 5.3"
|
||||
for _v in $_luaversions; do
|
||||
checkdepends="$checkdepends lua$_v"
|
||||
provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility
|
||||
done
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
|
||||
local lver; for lver in $_luaversions $_luajit; do
|
||||
msg "Testing on Lua $lver"
|
||||
make test LUA_BIN=lua$lver
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
local lmod_dir="$pkgdir/usr/share/lua/common"
|
||||
local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-3"
|
||||
|
Loading…
Reference in New Issue
Block a user