mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
main/lua-penlight: upgrade to 1.14.0
also, run tests, but disable luajit tests on archs that don't have it
This commit is contained in:
parent
059e2d099c
commit
961f95195f
1 changed files with 12 additions and 5 deletions
|
@ -1,15 +1,13 @@
|
|||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=lua-penlight
|
||||
_rockname=penlight
|
||||
pkgver=1.13.1
|
||||
pkgver=1.14.0
|
||||
pkgrel=0
|
||||
pkgdesc="Lua libraries for extended operations on tables, lists and strings"
|
||||
options="!check" # Requires lua-coveralls
|
||||
url="https://lunarmodules.github.io/Penlight/"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="lua lua-filesystem"
|
||||
checkdepends="luajit"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/lunarmodules/Penlight/archive/$pkgver/lua-penlight-$pkgver.tar.gz"
|
||||
builddir="$srcdir/Penlight-$pkgver"
|
||||
|
@ -23,8 +21,17 @@ for _v in $_luaversions; do
|
|||
subpackages="$subpackages lua$_v-penlight:_split"
|
||||
done
|
||||
|
||||
case "$CARCH" in
|
||||
ppc64le|riscv64|loongarch64)
|
||||
;;
|
||||
*)
|
||||
checkdepends="$checkdepends luajit"
|
||||
_luaversions="$_luaversions jit"
|
||||
;;
|
||||
esac
|
||||
|
||||
check() {
|
||||
local lver; for lver in $_luaversions jit; do
|
||||
local lver; for lver in $_luaversions; do
|
||||
msg "Testing on Lua $lver"
|
||||
lua$lver run.lua tests
|
||||
done
|
||||
|
@ -56,5 +63,5 @@ _split() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
de0a6a2f585f32bed234ef084d8fca9cee645eed3459aa3c39b885b46a05ae752b5c7ac3bb1957fef9519df2a11e250fc87d6d4d62ee6155be2742ad43a079fe lua-penlight-1.13.1.tar.gz
|
||||
a83f70716106d6576b27a42222ba897d5d5a7b3918088c582e89283cf091a95a9920fe6d0b8d65e1ffc4c1664166f7d5bc4df3b023539d1b33d7175e585bbe9f lua-penlight-1.14.0.tar.gz
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue