mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
community/lua-dromozoa-utf8: upgrade to 1.8
This commit is contained in:
parent
dbbf344153
commit
e4542b09eb
@ -2,7 +2,7 @@
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=lua-dromozoa-utf8
|
||||
_pkgname=dromozoa-utf8
|
||||
pkgver=1.4
|
||||
pkgver=1.8
|
||||
pkgrel=0
|
||||
pkgdesc="Lua 5.3 compatible pure-Lua UTF-8 implementation"
|
||||
url="https://github.com/dromozoa/dromozoa-utf8/"
|
||||
@ -10,7 +10,8 @@ arch="noarch"
|
||||
license="GPL-3.0"
|
||||
depends=""
|
||||
checkdepends=""
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/dromozoa/$_pkgname/archive/v$pkgver.tar.gz"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/dromozoa/$_pkgname/archive/v$pkgver.tar.gz
|
||||
test.sh.patch"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
# luajit is not available for selected arches
|
||||
@ -31,11 +32,7 @@ check() {
|
||||
|
||||
local lver; for lver in $_luaversions $_luajit; do
|
||||
msg "Testing on lua$lver"
|
||||
out=$(lua$lver test.lua test.exp 2>&1) || {
|
||||
echo "Tests failed, printing last 30 lines of the output..."
|
||||
printf '%s\n' "$out" | tail -n 30
|
||||
return 1
|
||||
}
|
||||
./test.sh lua$lver
|
||||
done
|
||||
}
|
||||
|
||||
@ -59,4 +56,5 @@ _subpackage() {
|
||||
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
|
||||
}
|
||||
|
||||
sha512sums="ce3440458b3b2e6e32df7279d037ce2e35df19853e08fc8b23a5a68898aa6bd0b26ffbf29eff68684493e38f852f44dce69fdff3de0156b20af021337770c035 lua-dromozoa-utf8-1.4.tar.gz"
|
||||
sha512sums="39fbdd5f41707f641275954d0f1e2084620b96e2e15b43b55ce4904cf4c5f6dcbac2997f746aa0dc4d027e0437140e1c4c5ec54057151d90d30f7bcba7ea25dc lua-dromozoa-utf8-1.8.tar.gz
|
||||
de29a3b7a1067b8181b2a40464a097d4474e474ff6e3f6295bce8bc2bd8a0bee29fae1f34ae300a83a60db91915af96bb464141e58d7bc67a970391399703140 test.sh.patch"
|
||||
|
17
community/lua-dromozoa-utf8/test.sh.patch
Normal file
17
community/lua-dromozoa-utf8/test.sh.patch
Normal file
@ -0,0 +1,17 @@
|
||||
Don't overwhelm console with test output...
|
||||
|
||||
--- a/test.sh
|
||||
+++ b/test.sh
|
||||
@@ -24,7 +24,11 @@
|
||||
|
||||
for i in test/test*.lua
|
||||
do
|
||||
- "$lua" "$i"
|
||||
+ "$lua" "$i" > "${i%.lua}.out" 2>&1 || {
|
||||
+ echo "Tests failed, printing last 30 lines of the output..."
|
||||
+ tail -n 30 "${i%.lua}.out"
|
||||
+ exit 1
|
||||
+ }
|
||||
done
|
||||
|
||||
mkdir -p out
|
Loading…
Reference in New Issue
Block a user