aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-dromozoa-utf8
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-01-31 17:45:02 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-01-31 17:45:24 +0100
commite4542b09ebc785684dde30af7123d7009e55f6be (patch)
tree8c2b9d954e23d21981205df00c0dbfdc8e154ecc /community/lua-dromozoa-utf8
parentdbbf344153d384eeb5dbffdefc188791686148fd (diff)
downloadaports-e4542b09ebc785684dde30af7123d7009e55f6be.tar.bz2
aports-e4542b09ebc785684dde30af7123d7009e55f6be.tar.xz
community/lua-dromozoa-utf8: upgrade to 1.8
Diffstat (limited to 'community/lua-dromozoa-utf8')
-rw-r--r--community/lua-dromozoa-utf8/APKBUILD14
-rw-r--r--community/lua-dromozoa-utf8/test.sh.patch17
2 files changed, 23 insertions, 8 deletions
diff --git a/community/lua-dromozoa-utf8/APKBUILD b/community/lua-dromozoa-utf8/APKBUILD
index 1f0931b2e1..1e13867d56 100644
--- a/community/lua-dromozoa-utf8/APKBUILD
+++ b/community/lua-dromozoa-utf8/APKBUILD
@@ -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"
diff --git a/community/lua-dromozoa-utf8/test.sh.patch b/community/lua-dromozoa-utf8/test.sh.patch
new file mode 100644
index 0000000000..7632adf739
--- /dev/null
+++ b/community/lua-dromozoa-utf8/test.sh.patch
@@ -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