Commit 379d4f00 authored by Jakub Jirutka's avatar Jakub Jirutka

community/lua-toml: add check function

parent c2894136
......@@ -2,20 +2,31 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-toml
pkgver=1.0
pkgrel=0
pkgrel=1
pkgdesc="TOML decoder/encoder for Lua"
url="https://github.com/jonstoler/lua-toml"
arch="noarch"
license="Happy"
depends=""
checkdepends="luajit lua-busted"
source="$pkgname-$pkgver.tar.gz::https://github.com/jonstoler/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage"
checkdepends="$checkdepends lua$_v"
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
}
package() {
mkdir -p "$pkgdir"
}
......
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