Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages /
lua-dkjson
Commits:
3c7ef780 by Caleb Maclennan at 2026-01-06T00:58:31+03:00
upgpkg: 2.8-4: Overhaul for Lua 5.5
- - - - -
4 changed files:
- .SRCINFO
- + LICENSES/MIT.txt
- PKGBUILD
- REUSE.toml
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = lua-dkjson
pkgdesc = David Kolf’s Pure Lua JSON module with UTF-8 support and no
external dependencies
pkgver = 2.8
- pkgrel = 3
+ pkgrel = 4
url = http://dkolf.de/dkjson-lua/
arch = any
license = MIT
@@ -9,6 +9,7 @@ pkgbase = lua-dkjson
makedepends = lua51
makedepends = lua52
makedepends = lua53
+ makedepends = lua54
makedepends = lua
source = http://dkolf.de/dkjson-lua/dkjson-2.8.tar.gz
source = https://luarocks.org/manifests/dhkolf/dkjson-2.8-1.rockspec
@@ -20,6 +21,9 @@ pkgbase = lua-dkjson
pkgname = lua-dkjson
optdepends = lua-lpeg: speed up decoding
+pkgname = lua54-dkjson
+ optdepends = lua-lpeg: speed up decoding
+
pkgname = lua53-dkjson
optdepends = lua53-lpeg: speed up decoding
=====================================
LICENSES/MIT.txt
=====================================
@@ -0,0 +1,18 @@
+MIT License
+
+Copyright (c) <year> <copyright holders>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and
+associated documentation files (the "Software"), to deal in the Software
without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial
+portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT
+LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NONINFRINGEMENT. IN NO
+EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
=====================================
PKGBUILD
=====================================
@@ -2,16 +2,16 @@
# Maintainer: Caleb Maclennan <[email protected]>
pkgbase=lua-dkjson
-pkgname=("lua-dkjson" "lua53-dkjson" "lua52-dkjson" "lua51-dkjson")
+pkgname=("lua-dkjson" "lua54-dkjson" "lua53-dkjson" "lua52-dkjson"
"lua51-dkjson")
pkgver=2.8
_rockrel=1
-pkgrel=3
+pkgrel=4
pkgdesc='David Kolf’s Pure Lua JSON module with UTF-8 support and no external
dependencies'
arch=('any')
url="http://dkolf.de/dkjson-lua/"
license=('MIT')
makedepends=('luarocks'
- 'lua51' 'lua52' 'lua53' 'lua' #
https://github.com/luarocks/luarocks/issues/1275
+ 'lua51' 'lua52' 'lua53' 'lua54' 'lua' #
https://github.com/luarocks/luarocks/issues/1275
)
_archive="${pkgbase#*-}-$pkgver"
_rock="$_archive-$_rockrel.all.rock"
@@ -25,7 +25,7 @@
sha256sums=('24e8cd3beb91c1c861eb7bb3fbc9bd418bbff9ad4aa5d0471816258236a31532'
build() {
cd "$_archive"
- for LUAVER in 5.{1,2,3,4}; do
+ for LUAVER in 5.{1,2,3,4,5}; do
luarocks --lua-version "$LUAVER" \
make --pack-binary-rock --deps-mode none --
"$srcdir/$_rockspec"
install -Dm0644 -t "lua-$LUAVER/" "$_rock"
@@ -41,6 +41,11 @@ _package() {
}
package_lua-dkjson() {
+ optdepends=('lua-lpeg: speed up decoding')
+ _package 5.5
+}
+
+package_lua54-dkjson() {
optdepends=('lua-lpeg: speed up decoding')
_package 5.4
}
=====================================
REUSE.toml
=====================================
@@ -20,3 +20,8 @@ path = [
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"
+
+[[annotations]]
+path = ["license-from-upstream"]
+SPDX-FileCopyrightText = "David Heiko Kolf"
+SPDX-License-Identifier = "MIT"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/lua-dkjson/-/commit/3c7ef780f7ace63bda57149b409b87c5cfce376b
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/lua-dkjson/-/commit/3c7ef780f7ace63bda57149b409b87c5cfce376b
You're receiving this email because of your account on gitlab.archlinux.org.