Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] prosody: update to 0.12.5.
@ 2025-01-01 22:56 AnInternetTroll
  2025-01-01 23:01 ` [PR PATCH] [Updated] " AnInternetTroll
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-01 22:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

There is a new pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

// TODO: test this PR

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 26562 bytes --]

From ce61e44fb8c42ddfbbc2d2bb508c013cc5c1e3db Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 01/10] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From da9cd3f91c999b448a806a45ff590383608d724a Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 02/10] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From ca632a83cad714febd6b399e1b02239ab2f96db3 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:09 +0500
Subject: [PATCH 03/10] New package: lua54-cliargs-3.0.2

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 53 ++++++++++++++++++++++++++++++++++
 4 files changed, 56 insertions(+)
 create mode 120000 srcpkgs/lua51-cliargs
 create mode 120000 srcpkgs/lua52-cliargs
 create mode 120000 srcpkgs/lua53-cliargs
 create mode 100644 srcpkgs/lua54-cliargs/template

diff --git a/srcpkgs/lua51-cliargs b/srcpkgs/lua51-cliargs
new file mode 120000
index 00000000000000..2f82d49db945ed
--- /dev/null
+++ b/srcpkgs/lua51-cliargs
@@ -0,0 +1 @@
+lua54-cliargs
\ No newline at end of file
diff --git a/srcpkgs/lua52-cliargs b/srcpkgs/lua52-cliargs
new file mode 120000
index 00000000000000..2f82d49db945ed
--- /dev/null
+++ b/srcpkgs/lua52-cliargs
@@ -0,0 +1 @@
+lua54-cliargs
\ No newline at end of file
diff --git a/srcpkgs/lua53-cliargs b/srcpkgs/lua53-cliargs
new file mode 120000
index 00000000000000..2f82d49db945ed
--- /dev/null
+++ b/srcpkgs/lua53-cliargs
@@ -0,0 +1 @@
+lua54-cliargs
\ No newline at end of file
diff --git a/srcpkgs/lua54-cliargs/template b/srcpkgs/lua54-cliargs/template
new file mode 100644
index 00000000000000..0a231bec30c400
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+_desc="Command-line argument parser for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua_cliargs"
+distfiles="https://github.com/lunarmodules/lua_cliargs/archive/refs/tags/v${version}.tar.gz"
+checksum=a7a57ab9c73f6c44040a78305b6dc7780ca1565cc4c9057d74a6608cb0443af4
+
+_rockname=lua_cliargs
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From f4ae2dd1c128fbe22358aacdb1cdcec64e1b9ac2 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 04/10] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..fdcc6e4a1e11f6
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+_rockrel=1
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 4c6a8e5f01fbefa59c5a586f43b1186b2092d432 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 05/10] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From ce1656a7580cd692008c9886b4c34621c807585b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:58:30 +0500
Subject: [PATCH 06/10] New package: lua54-penlight-1.14.0

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 57 +++++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 120000 srcpkgs/lua51-penlight
 create mode 120000 srcpkgs/lua52-penlight
 create mode 120000 srcpkgs/lua53-penlight
 create mode 100644 srcpkgs/lua54-penlight/template

diff --git a/srcpkgs/lua51-penlight b/srcpkgs/lua51-penlight
new file mode 120000
index 00000000000000..982fe9ad102832
--- /dev/null
+++ b/srcpkgs/lua51-penlight
@@ -0,0 +1 @@
+lua54-penlight
\ No newline at end of file
diff --git a/srcpkgs/lua52-penlight b/srcpkgs/lua52-penlight
new file mode 120000
index 00000000000000..982fe9ad102832
--- /dev/null
+++ b/srcpkgs/lua52-penlight
@@ -0,0 +1 @@
+lua54-penlight
\ No newline at end of file
diff --git a/srcpkgs/lua53-penlight b/srcpkgs/lua53-penlight
new file mode 120000
index 00000000000000..982fe9ad102832
--- /dev/null
+++ b/srcpkgs/lua53-penlight
@@ -0,0 +1 @@
+lua54-penlight
\ No newline at end of file
diff --git a/srcpkgs/lua54-penlight/template b/srcpkgs/lua54-penlight/template
new file mode 100644
index 00000000000000..29e34bcdcab12d
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-penlight'
+pkgname=lua54-penlight
+version=1.14.0
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 zip luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel lua54-luafilesystem"
+_depends="lua54 lua54-luafilesystem"
+depends="${_depends}"
+_desc="Lua libraries focusing on input data handling"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/Penlight"
+distfiles="https://github.com/lunarmodules/Penlight/archive/refs/tags/${version}.tar.gz"
+checksum=2387431c0e83c4189cccb35b989141a3280d735cb5d42bacf3451af9869bebf7
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr" \
+		make  --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE.md
+}
+
+lua51-penlight_package() {
+	build_style=meta
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 9aa921be4f9532c159031464ccd8afb5e29a4593 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 07/10] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From f2cc10b7bb062b5e49b4703f565f24766828b299 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 08/10] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 968f98bde1d49b2d5f44533fffd33457b5c439c8 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 09/10] New package: busted-2.2.0

---
 srcpkgs/busted/template | 57 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..5786e5712cbb46
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,57 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From 04515b185b9f1257756c4fb88f70a50fcdedbb7e Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 10/10] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
@ 2025-01-01 23:01 ` AnInternetTroll
  2025-01-02  8:36 ` Luciogi
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-01 23:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

// TODO: test this PR

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 26562 bytes --]

From ce61e44fb8c42ddfbbc2d2bb508c013cc5c1e3db Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 01/10] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From da9cd3f91c999b448a806a45ff590383608d724a Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 02/10] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From ca632a83cad714febd6b399e1b02239ab2f96db3 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:09 +0500
Subject: [PATCH 03/10] New package: lua54-cliargs-3.0.2

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 53 ++++++++++++++++++++++++++++++++++
 4 files changed, 56 insertions(+)
 create mode 120000 srcpkgs/lua51-cliargs
 create mode 120000 srcpkgs/lua52-cliargs
 create mode 120000 srcpkgs/lua53-cliargs
 create mode 100644 srcpkgs/lua54-cliargs/template

diff --git a/srcpkgs/lua51-cliargs b/srcpkgs/lua51-cliargs
new file mode 120000
index 00000000000000..2f82d49db945ed
--- /dev/null
+++ b/srcpkgs/lua51-cliargs
@@ -0,0 +1 @@
+lua54-cliargs
\ No newline at end of file
diff --git a/srcpkgs/lua52-cliargs b/srcpkgs/lua52-cliargs
new file mode 120000
index 00000000000000..2f82d49db945ed
--- /dev/null
+++ b/srcpkgs/lua52-cliargs
@@ -0,0 +1 @@
+lua54-cliargs
\ No newline at end of file
diff --git a/srcpkgs/lua53-cliargs b/srcpkgs/lua53-cliargs
new file mode 120000
index 00000000000000..2f82d49db945ed
--- /dev/null
+++ b/srcpkgs/lua53-cliargs
@@ -0,0 +1 @@
+lua54-cliargs
\ No newline at end of file
diff --git a/srcpkgs/lua54-cliargs/template b/srcpkgs/lua54-cliargs/template
new file mode 100644
index 00000000000000..0a231bec30c400
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+_desc="Command-line argument parser for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua_cliargs"
+distfiles="https://github.com/lunarmodules/lua_cliargs/archive/refs/tags/v${version}.tar.gz"
+checksum=a7a57ab9c73f6c44040a78305b6dc7780ca1565cc4c9057d74a6608cb0443af4
+
+_rockname=lua_cliargs
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 58d95aed1e0a036accafbe45b2d066f390045335 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 04/10] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From d53c78a772c5faaa550b05a2be871a0ef0b600db Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 05/10] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 0725bb80b71ec2ebd4fe42a61f16270a2d7643e0 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:58:30 +0500
Subject: [PATCH 06/10] New package: lua54-penlight-1.14.0

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 57 +++++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 120000 srcpkgs/lua51-penlight
 create mode 120000 srcpkgs/lua52-penlight
 create mode 120000 srcpkgs/lua53-penlight
 create mode 100644 srcpkgs/lua54-penlight/template

diff --git a/srcpkgs/lua51-penlight b/srcpkgs/lua51-penlight
new file mode 120000
index 00000000000000..982fe9ad102832
--- /dev/null
+++ b/srcpkgs/lua51-penlight
@@ -0,0 +1 @@
+lua54-penlight
\ No newline at end of file
diff --git a/srcpkgs/lua52-penlight b/srcpkgs/lua52-penlight
new file mode 120000
index 00000000000000..982fe9ad102832
--- /dev/null
+++ b/srcpkgs/lua52-penlight
@@ -0,0 +1 @@
+lua54-penlight
\ No newline at end of file
diff --git a/srcpkgs/lua53-penlight b/srcpkgs/lua53-penlight
new file mode 120000
index 00000000000000..982fe9ad102832
--- /dev/null
+++ b/srcpkgs/lua53-penlight
@@ -0,0 +1 @@
+lua54-penlight
\ No newline at end of file
diff --git a/srcpkgs/lua54-penlight/template b/srcpkgs/lua54-penlight/template
new file mode 100644
index 00000000000000..29e34bcdcab12d
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-penlight'
+pkgname=lua54-penlight
+version=1.14.0
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 zip luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel lua54-luafilesystem"
+_depends="lua54 lua54-luafilesystem"
+depends="${_depends}"
+_desc="Lua libraries focusing on input data handling"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/Penlight"
+distfiles="https://github.com/lunarmodules/Penlight/archive/refs/tags/${version}.tar.gz"
+checksum=2387431c0e83c4189cccb35b989141a3280d735cb5d42bacf3451af9869bebf7
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr" \
+		make  --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE.md
+}
+
+lua51-penlight_package() {
+	build_style=meta
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 3a99cc4ad8c59611b35b5cd7a0f7356d626c0539 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 07/10] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 70e67464e68130a0e674c0bd616d578c4f2ab0e6 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 08/10] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From b0eb53c987d8caaa3cda361a3378807cb8ea4abb Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 09/10] New package: busted-2.2.0

---
 srcpkgs/busted/template | 57 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..5786e5712cbb46
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,57 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From b4a0040c7747c182e61445fcaad12812bf54649b Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 10/10] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
  2025-01-01 23:01 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2025-01-02  8:36 ` Luciogi
  2025-01-02 12:10 ` [PR REVIEW] " Johnnynator
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Luciogi @ 2025-01-02  8:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#issuecomment-2567427907

Comment:
sile PR is merged now
https://github.com/void-linux/void-packages/pull/51222

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR REVIEW] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
  2025-01-01 23:01 ` [PR PATCH] [Updated] " AnInternetTroll
  2025-01-02  8:36 ` Luciogi
@ 2025-01-02 12:10 ` Johnnynator
  2025-01-02 12:44 ` AnInternetTroll
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Johnnynator @ 2025-01-02 12:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New review comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#discussion_r1900817681

Comment:
`lua54-busted`? Or is there a specific reason why the lua 5.4 version should be handles special?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR REVIEW] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (2 preceding siblings ...)
  2025-01-02 12:10 ` [PR REVIEW] " Johnnynator
@ 2025-01-02 12:44 ` AnInternetTroll
  2025-01-02 12:47 ` [PR PATCH] [Updated] " AnInternetTroll
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-02 12:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

New review comment by AnInternetTroll on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#discussion_r1900842707

Comment:
It's a cli app so I am not too sure what the appropriate action is here (lua5- prefix or standalone name), so uhhh I did both

I am open to changing it /shrug

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (3 preceding siblings ...)
  2025-01-02 12:44 ` AnInternetTroll
@ 2025-01-02 12:47 ` AnInternetTroll
  2025-01-02 12:56 ` AnInternetTroll
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-02 12:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 21137 bytes --]

From 0168fd440abcaa9199117e9823ebb368f55f6545 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/8] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 9d751863a5d383edefdda1dafd04b7d6cc79d048 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/8] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 357b9a3a171b906844cf81034faea9ed83cc3c35 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/8] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 4112538126eb5cb8d19c4dcec4bd6037b4e51d0f Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/8] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 6de217aee3b1ce961aff76bd17e38d10eb6975d4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/8] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 7d49efa7b00d80a98654f3a5c3ebda03128883d0 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/8] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 473b2ca311d8d85903cf8bddf49cdb19c84a0d2c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/8] New package: busted-2.2.0

---
 srcpkgs/busted/template | 62 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 66 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..48758e9a3be3b4
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,62 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+	conflicts="lua51-busted lua52-busted lua53-busted busted"
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From 11cb66ebfcd3fbd220c3a831ec9ac129351b4d0c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/8] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (4 preceding siblings ...)
  2025-01-02 12:47 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2025-01-02 12:56 ` AnInternetTroll
  2025-01-02 13:36 ` AnInternetTroll
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-02 12:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 21077 bytes --]

From 0168fd440abcaa9199117e9823ebb368f55f6545 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/8] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 9d751863a5d383edefdda1dafd04b7d6cc79d048 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/8] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 357b9a3a171b906844cf81034faea9ed83cc3c35 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/8] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 4112538126eb5cb8d19c4dcec4bd6037b4e51d0f Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/8] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 6de217aee3b1ce961aff76bd17e38d10eb6975d4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/8] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 7d49efa7b00d80a98654f3a5c3ebda03128883d0 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/8] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1ee5bd730a336eb85582b11e4e03af9c643ec4db Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/8] New package: busted-2.2.0

---
 srcpkgs/busted/template | 61 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..2261633f72a585
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,61 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From 0f487865a71c6384ee2095bd17a011354cbdc5d6 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/8] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (5 preceding siblings ...)
  2025-01-02 12:56 ` AnInternetTroll
@ 2025-01-02 13:36 ` AnInternetTroll
  2025-01-02 14:29 ` AnInternetTroll
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-02 13:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 21077 bytes --]

From e45f6acd791cfdaf59105e3b80a5e54f65f183dc Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/8] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 4894195e4f42627f15b36eb959b46d7a545790a1 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/8] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 88f378e4ef121ebf8756d3412bab2e9bd25547b4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/8] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 8db9158cedd4ea3b2c76308766a37bf9aaf4a573 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/8] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1517a5cd0e42ba6b5b4cf91a58c2a0379bbfa59c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/8] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 0fb5b88045ed2ab65cd4f8c761e75aa5a3f7f2a3 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/8] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1deae6ec7f2b10782a9b6837065c7a86572a9ebf Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/8] New package: busted-2.2.0

---
 srcpkgs/busted/template | 61 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..2261633f72a585
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,61 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From b36d6dc84d28e390cab3030ac9bcd7027c89acf2 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/8] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (6 preceding siblings ...)
  2025-01-02 13:36 ` AnInternetTroll
@ 2025-01-02 14:29 ` AnInternetTroll
  2025-01-02 14:30 ` AnInternetTroll
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-02 14:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 22227 bytes --]

From e45f6acd791cfdaf59105e3b80a5e54f65f183dc Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/9] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 4894195e4f42627f15b36eb959b46d7a545790a1 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/9] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 88f378e4ef121ebf8756d3412bab2e9bd25547b4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/9] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 8db9158cedd4ea3b2c76308766a37bf9aaf4a573 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/9] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1517a5cd0e42ba6b5b4cf91a58c2a0379bbfa59c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/9] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 0fb5b88045ed2ab65cd4f8c761e75aa5a3f7f2a3 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/9] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1deae6ec7f2b10782a9b6837065c7a86572a9ebf Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/9] New package: busted-2.2.0

---
 srcpkgs/busted/template | 61 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..2261633f72a585
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,61 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From b36d6dc84d28e390cab3030ac9bcd7027c89acf2 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/9] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

From 8609bd823aaba8a88685d16fc497b3b18ba182ba Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Thu, 2 Jan 2025 15:29:35 +0100
Subject: [PATCH 9/9] fixup! New package: busted-2.2.0

---
 srcpkgs/busted/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
index 2261633f72a585..aceaf69989c976 100644
--- a/srcpkgs/busted/template
+++ b/srcpkgs/busted/template
@@ -19,12 +19,18 @@ _rockrel=1
 _package() {
 	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
 		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
-	sed -i -e "s|/destdir/${pkgname}-${version}||g;s|lua5\.3|lua${1/\./\\.}|" "${PKGDESTDIR}/usr/bin/busted"
+
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|/destdir/${XBPS_CROSS_TRIPLET}/${pkgname}-${version}||g"
+	else
+		vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|/destdir/${pkgname}-${version}||g"
+	fi
 	vlicense LICENSE
 }
 
 do_install() {
 	_package 5.4
+	vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|lua5\.3|lua5\.4|"
 }
 
 lua51-busted_package() {

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (7 preceding siblings ...)
  2025-01-02 14:29 ` AnInternetTroll
@ 2025-01-02 14:30 ` AnInternetTroll
  2025-01-03 20:53 ` AnInternetTroll
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-02 14:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 21267 bytes --]

From e45f6acd791cfdaf59105e3b80a5e54f65f183dc Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/8] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 4894195e4f42627f15b36eb959b46d7a545790a1 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/8] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 88f378e4ef121ebf8756d3412bab2e9bd25547b4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/8] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 8db9158cedd4ea3b2c76308766a37bf9aaf4a573 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/8] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1517a5cd0e42ba6b5b4cf91a58c2a0379bbfa59c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/8] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 0fb5b88045ed2ab65cd4f8c761e75aa5a3f7f2a3 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/8] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From e50dd91eb4b5bcbb0b7f3de9bad2c8bf5c3e8086 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/8] New package: busted-2.2.0

---
 srcpkgs/busted/template | 67 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/lua51-busted    |  1 +
 srcpkgs/lua52-busted    |  1 +
 srcpkgs/lua53-busted    |  1 +
 srcpkgs/lua54-busted    |  1 +
 5 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/busted/template
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 120000 srcpkgs/lua54-busted

diff --git a/srcpkgs/busted/template b/srcpkgs/busted/template
new file mode 100644
index 00000000000000..aceaf69989c976
--- /dev/null
+++ b/srcpkgs/busted/template
@@ -0,0 +1,67 @@
+# Template file for 'busted'
+pkgname=busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|/destdir/${XBPS_CROSS_TRIPLET}/${pkgname}-${version}||g"
+	else
+		vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|/destdir/${pkgname}-${version}||g"
+	fi
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+	vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|lua5\.3|lua5\.4|"
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua54-busted_package() {
+	depends="busted"
+	short_desc="${_desc} (5.4.x)"
+	build_style=meta
+}
diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted b/srcpkgs/lua54-busted
new file mode 120000
index 00000000000000..51538b64f8de32
--- /dev/null
+++ b/srcpkgs/lua54-busted
@@ -0,0 +1 @@
+busted
\ No newline at end of file

From ed1f8020e545e867f6ad11468d395a29f9b3bb1b Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/8] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (8 preceding siblings ...)
  2025-01-02 14:30 ` AnInternetTroll
@ 2025-01-03 20:53 ` AnInternetTroll
  2025-01-03 20:55 ` [PR REVIEW] " AnInternetTroll
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-03 20:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 20973 bytes --]

From 9d1e735e6c561a4748b4242c11ceec938d1d2c1f Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/8] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1ad9bec58ca2edf961c9890b19cd590525e0d286 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/8] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 5525a1eacaefe3f7c8bd6d7cbd285e0bbc4cd272 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/8] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 9ddc9538f0661037ecb35d53c8cb4073e32dd70b Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/8] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 6650c72b655280dcbbe1ccc6f51cd2b857958aa5 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/8] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 08167257c6cf453217d1d8f7f41262036eb908d4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/8] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 7980bb0b3e250a90b8760a488272909c8202c383 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/8] New package: lua54-busted-2.2.0

---
 srcpkgs/lua51-busted          |  1 +
 srcpkgs/lua52-busted          |  1 +
 srcpkgs/lua53-busted          |  1 +
 srcpkgs/lua54-busted/template | 61 +++++++++++++++++++++++++++++++++++
 4 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 100644 srcpkgs/lua54-busted/template

diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..83a8c6193c1d2e
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+lua54-busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..83a8c6193c1d2e
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+lua54-busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..83a8c6193c1d2e
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+lua54-busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted/template b/srcpkgs/lua54-busted/template
new file mode 100644
index 00000000000000..c0cc209a6e7e7a
--- /dev/null
+++ b/srcpkgs/lua54-busted/template
@@ -0,0 +1,61 @@
+# Template file for 'lua54-busted'
+pkgname=lua54-busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|/destdir/${XBPS_CROSS_TRIPLET}/${pkgname}-${version}||g"
+	else
+		vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|/destdir/${pkgname}-${version}||g"
+	fi
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+	vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|lua5\.3|lua5\.4|"
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 699a6f2e2def158ccac341f4c60fc00ffd00cc3c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/8] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR REVIEW] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (9 preceding siblings ...)
  2025-01-03 20:53 ` AnInternetTroll
@ 2025-01-03 20:55 ` AnInternetTroll
  2025-01-04 15:09 ` [PR PATCH] [Updated] " AnInternetTroll
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-03 20:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

New review comment by AnInternetTroll on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#discussion_r1902157241

Comment:
in retrospect, doesn't make sense to have a lua54-busted and a busted package

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (10 preceding siblings ...)
  2025-01-03 20:55 ` [PR REVIEW] " AnInternetTroll
@ 2025-01-04 15:09 ` AnInternetTroll
  2025-01-04 15:48 ` [PR REVIEW] " Luciogi
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-04 15:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 20822 bytes --]

From ed174b96ce6875943fae20d991d6e4f5db5e89e1 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:23 +0100
Subject: [PATCH 1/8] New package: lua54-say-1.4.1

---
 srcpkgs/lua51-say          |  1 +
 srcpkgs/lua52-say          |  1 +
 srcpkgs/lua53-say          |  1 +
 srcpkgs/lua54-say/template | 48 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-say
 create mode 120000 srcpkgs/lua52-say
 create mode 120000 srcpkgs/lua53-say
 create mode 100644 srcpkgs/lua54-say/template

diff --git a/srcpkgs/lua51-say b/srcpkgs/lua51-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua51-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua52-say b/srcpkgs/lua52-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua52-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua53-say b/srcpkgs/lua53-say
new file mode 120000
index 00000000000000..516e92f1e4a27a
--- /dev/null
+++ b/srcpkgs/lua53-say
@@ -0,0 +1 @@
+lua54-say
\ No newline at end of file
diff --git a/srcpkgs/lua54-say/template b/srcpkgs/lua54-say/template
new file mode 100644
index 00000000000000..102b3088e67cc4
--- /dev/null
+++ b/srcpkgs/lua54-say/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-say'
+pkgname=lua54-say
+version=1.4.1
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Lua string hashing library, useful for internationalization"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/say"
+changelog="https://github.com/lunarmodules/say/releases"
+distfiles="https://github.com/lunarmodules/say/archive/refs/tags/v${version}.tar.gz"
+checksum=ce07547ca49ef42cc799e2a30b3c65ce77039978e32e7961799a252d61a56486
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "say-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-say_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-say_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-say_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 9efa355d393f7dead7a5d7bab9db2d6e6a9b54aa Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 2/8] New package: lua54-assert-1.9.0

---
 srcpkgs/lua51-assert          |  1 +
 srcpkgs/lua52-assert          |  1 +
 srcpkgs/lua53-assert          |  1 +
 srcpkgs/lua54-assert/template | 49 +++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 120000 srcpkgs/lua51-assert
 create mode 120000 srcpkgs/lua52-assert
 create mode 120000 srcpkgs/lua53-assert
 create mode 100644 srcpkgs/lua54-assert/template

diff --git a/srcpkgs/lua51-assert b/srcpkgs/lua51-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua51-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua52-assert b/srcpkgs/lua52-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua52-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua53-assert b/srcpkgs/lua53-assert
new file mode 120000
index 00000000000000..f140bc90a848b1
--- /dev/null
+++ b/srcpkgs/lua53-assert
@@ -0,0 +1 @@
+lua54-assert
\ No newline at end of file
diff --git a/srcpkgs/lua54-assert/template b/srcpkgs/lua54-assert/template
new file mode 100644
index 00000000000000..519e2bae5db977
--- /dev/null
+++ b/srcpkgs/lua54-assert/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-assert'
+pkgname=lua54-assert
+version=1.9.0
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+_depends="lua54 lua54-say"
+depends="${_depends}"
+_desc="Assertion library for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/luassert"
+changelog="https://github.com/lunarmodules/luassert/releases"
+distfiles="https://github.com/lunarmodules/luassert/archive/refs/tags/v${version}.tar.gz"
+checksum=1db0fabf1bd87392860375b89a8a37d17b687325c988be0df8c42e7e96e7ed73
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luassert-scm-1.rockspec"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-assert_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-assert_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-assert_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From d787aaba954418b6d7065ce524513349cc80b322 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:24 +0100
Subject: [PATCH 3/8] New package: lua54-dkjson-2.8

---
 srcpkgs/lua51-dkjson          |  1 +
 srcpkgs/lua52-dkjson          |  1 +
 srcpkgs/lua53-dkjson          |  1 +
 srcpkgs/lua54-dkjson/template | 64 +++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 120000 srcpkgs/lua51-dkjson
 create mode 120000 srcpkgs/lua52-dkjson
 create mode 120000 srcpkgs/lua53-dkjson
 create mode 100644 srcpkgs/lua54-dkjson/template

diff --git a/srcpkgs/lua51-dkjson b/srcpkgs/lua51-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua51-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua52-dkjson b/srcpkgs/lua52-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua52-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua53-dkjson b/srcpkgs/lua53-dkjson
new file mode 120000
index 00000000000000..12cbf8bf11ecce
--- /dev/null
+++ b/srcpkgs/lua53-dkjson
@@ -0,0 +1 @@
+lua54-dkjson
\ No newline at end of file
diff --git a/srcpkgs/lua54-dkjson/template b/srcpkgs/lua54-dkjson/template
new file mode 100644
index 00000000000000..98c0f63f9e3ca8
--- /dev/null
+++ b/srcpkgs/lua54-dkjson/template
@@ -0,0 +1,64 @@
+# Template file for 'lua54-dkjson'
+pkgname=lua54-dkjson
+version=2.8
+revision=1
+_rockrel=1
+hostmakedepends="zip luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="David Kolf's JSON module for Lua"
+short_desc="${_desc}"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="http://dkolf.de/dkjson-lua/"
+changelog="http://dkolf.de/dkjson-lua/"
+_rockspec="dkjson-$version-$_rockrel.rockspec"
+distfiles="http://dkolf.de/dkjson-lua/dkjson-${version}.lua
+ https://luarocks.org/manifests/dhkolf/$_rockspec"
+checksum="eb3bf160688fb395a2db6bc52eeff4f7855a6321d2b41bdc754554d13f4e7d44
+ 6ab6ac25e5fbc90d9183bd11c9ea6218dbcb762c90cfc5a7e075eb7531080418"
+skip_extraction="dkjson-${version}.lua $_rockspec"
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		install --deps-mode=none --no-manifest -- "lua-${1}/dkjson-${version}-${_rockrel}.all.rock"
+	vlicense LICENSE
+}
+
+
+do_build() {
+	cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/dkjson-${version}.lua" dkjson.lua
+	sed -n '/--\[==\[/,/--]==]/p' dkjson.lua > LICENSE
+	for _lua_version in 5.{1,2,3,4}; do
+		luarocks --lua-version "$_lua_version" \
+			make --pack-binary-rock --deps-mode none -- "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_rockspec}"
+		mkdir "lua-${_lua_version}"
+		mv "dkjson-${version}-${_rockrel}.all.rock" "lua-${_lua_version}/"
+	done
+}
+do_install() {
+	_package 5.4
+}
+
+lua51-dkjson_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-dkjson_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-dkjson_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From b655294e4ffa30f80095c540530822ab5f65114d Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:25 +0100
Subject: [PATCH 4/8] New package: lua54-mediator-1.1.2

---
 srcpkgs/lua51-mediator          |  1 +
 srcpkgs/lua52-mediator          |  1 +
 srcpkgs/lua53-mediator          |  1 +
 srcpkgs/lua54-mediator/template | 47 +++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-mediator
 create mode 120000 srcpkgs/lua52-mediator
 create mode 120000 srcpkgs/lua53-mediator
 create mode 100644 srcpkgs/lua54-mediator/template

diff --git a/srcpkgs/lua51-mediator b/srcpkgs/lua51-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua51-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua52-mediator b/srcpkgs/lua52-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua52-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua53-mediator b/srcpkgs/lua53-mediator
new file mode 120000
index 00000000000000..5c486661121567
--- /dev/null
+++ b/srcpkgs/lua53-mediator
@@ -0,0 +1 @@
+lua54-mediator
\ No newline at end of file
diff --git a/srcpkgs/lua54-mediator/template b/srcpkgs/lua54-mediator/template
new file mode 100644
index 00000000000000..97c73a3d80899e
--- /dev/null
+++ b/srcpkgs/lua54-mediator/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-mediator'
+pkgname=lua54-mediator
+version=1.1.2
+revision=1
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 lua54"
+depends="lua54"
+_desc="Mediator pattern implementation for pub-sub management"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://olivinelabs.com/mediator_lua/"
+distfiles="https://github.com/Olivine-Labs/mediator_lua/archive/refs/tags/v${version}-0.tar.gz"
+checksum=faf5859fd2081be4e9e4fb8873a2dc65f7eff3fd93d6dd14da65f8e123fcff9b
+
+# FIXME: No license is provided by upstream. What do we put in the package?
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "mediator_lua-${version}-0.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua51-mediator_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-mediator_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-mediator_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From e7071b2a81648a5311d3681a8c62cdb6dafeb3a1 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 5/8] New package: lua54-system-0.4.5

---
 srcpkgs/lua51-system          |  1 +
 srcpkgs/lua52-system          |  1 +
 srcpkgs/lua53-system          |  1 +
 srcpkgs/lua54-system/template | 48 +++++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 120000 srcpkgs/lua51-system
 create mode 120000 srcpkgs/lua52-system
 create mode 120000 srcpkgs/lua53-system
 create mode 100644 srcpkgs/lua54-system/template

diff --git a/srcpkgs/lua51-system b/srcpkgs/lua51-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua51-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua52-system b/srcpkgs/lua52-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua52-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua53-system b/srcpkgs/lua53-system
new file mode 120000
index 00000000000000..3945eb5f4a3658
--- /dev/null
+++ b/srcpkgs/lua53-system
@@ -0,0 +1 @@
+lua54-system
\ No newline at end of file
diff --git a/srcpkgs/lua54-system/template b/srcpkgs/lua54-system/template
new file mode 100644
index 00000000000000..955973ef4af419
--- /dev/null
+++ b/srcpkgs/lua54-system/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-system'
+pkgname=lua54-system
+version=0.4.5
+revision=1
+hostmakedepends="zip luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Platform independent system calls for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/luasystem/"
+changelog="https://github.com/lunarmodules/luasystem/raw/refs/heads/master/CHANGELOG.md"
+distfiles="https://github.com/lunarmodules/luasystem/archive/refs/tags/v${version}.tar.gz"
+checksum=be0cd142a60d987d1eb8fb85ba84834d342a392e3861934eaba8d365945c367c
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "luasystem-scm-0.rockspec"
+	vlicense LICENSE.md
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-system_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-system_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-system_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 164d2a80c1ecf65e34acee7fe2ccf5273a1245ba Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:26 +0100
Subject: [PATCH 6/8] New package: lua54-term-0.8

---
 srcpkgs/lua51-term          |  1 +
 srcpkgs/lua52-term          |  1 +
 srcpkgs/lua53-term          |  1 +
 srcpkgs/lua54-term/template | 47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 120000 srcpkgs/lua51-term
 create mode 120000 srcpkgs/lua52-term
 create mode 120000 srcpkgs/lua53-term
 create mode 100644 srcpkgs/lua54-term/template

diff --git a/srcpkgs/lua51-term b/srcpkgs/lua51-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua51-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua52-term b/srcpkgs/lua52-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua52-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua53-term b/srcpkgs/lua53-term
new file mode 120000
index 00000000000000..6a87d0f9d77246
--- /dev/null
+++ b/srcpkgs/lua53-term
@@ -0,0 +1 @@
+lua54-term
\ No newline at end of file
diff --git a/srcpkgs/lua54-term/template b/srcpkgs/lua54-term/template
new file mode 100644
index 00000000000000..88a1ed0cab3dce
--- /dev/null
+++ b/srcpkgs/lua54-term/template
@@ -0,0 +1,47 @@
+# Template file for 'lua54-term'
+pkgname=lua54-term
+version=0.8
+revision=1
+hostmakedepends="luarocks-lua54 lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+_desc="Terminal operations for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-term"
+distfiles="https://github.com/hoelzro/lua-term/archive/refs/tags/$version.tar.gz"
+checksum=0cb270be22dfc262beec2f4ffc66b878ccaf236f537d693fa36c8f578fc51aa6
+
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "lua-term-${version}-1.rockspec"
+	vlicense COPYING
+}
+
+do_install() {
+	_package 5.4 "$DESTDIR"
+}
+
+lua51-term_package() {
+	depends="lua51"
+	short_desc="${_desc} (5.1.x)"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-term_package() {
+	depends="lua52"
+	short_desc="${_desc} (5.2.x)"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-term_package() {
+	depends="lua53"
+	short_desc="${_desc} (5.3.x)"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 90e61d30e98245b2a916c852e93d15c9dba95b17 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:27 +0100
Subject: [PATCH 7/8] New package: lua54-busted-2.2.0

---
 srcpkgs/lua51-busted          |  1 +
 srcpkgs/lua52-busted          |  1 +
 srcpkgs/lua53-busted          |  1 +
 srcpkgs/lua54-busted/template | 57 +++++++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 120000 srcpkgs/lua51-busted
 create mode 120000 srcpkgs/lua52-busted
 create mode 120000 srcpkgs/lua53-busted
 create mode 100644 srcpkgs/lua54-busted/template

diff --git a/srcpkgs/lua51-busted b/srcpkgs/lua51-busted
new file mode 120000
index 00000000000000..83a8c6193c1d2e
--- /dev/null
+++ b/srcpkgs/lua51-busted
@@ -0,0 +1 @@
+lua54-busted
\ No newline at end of file
diff --git a/srcpkgs/lua52-busted b/srcpkgs/lua52-busted
new file mode 120000
index 00000000000000..83a8c6193c1d2e
--- /dev/null
+++ b/srcpkgs/lua52-busted
@@ -0,0 +1 @@
+lua54-busted
\ No newline at end of file
diff --git a/srcpkgs/lua53-busted b/srcpkgs/lua53-busted
new file mode 120000
index 00000000000000..83a8c6193c1d2e
--- /dev/null
+++ b/srcpkgs/lua53-busted
@@ -0,0 +1 @@
+lua54-busted
\ No newline at end of file
diff --git a/srcpkgs/lua54-busted/template b/srcpkgs/lua54-busted/template
new file mode 100644
index 00000000000000..0e1cf091f92906
--- /dev/null
+++ b/srcpkgs/lua54-busted/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-busted'
+pkgname=lua54-busted
+version=2.2.0
+revision=1
+_depends="lua54 lua54-dkjson lua54-cliargs lua54-system lua54-say lua54-assert lua54-term lua54-penlight lua54-mediator"
+hostmakedepends="luarocks-lua54 lua51 lua52 lua53 ${_depends}"
+depends="${_depends}"
+_desc="Elegant Lua unit testing"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://lunarmodules.github.io/busted/"
+changelog="https://github.com/lunarmodules/busted/releases"
+distfiles="https://github.com/lunarmodules/busted/archive/refs/tags/v${version}.tar.gz"
+checksum=befca10f573bb476fa1db2e3149150d65f802a71d34d1682679e640665f2dc2b
+conflicts="lua51-busted lua52-busted lua53-busted"
+
+_rockrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="$PKGDESTDIR/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/busted-${version}-$_rockrel.rockspec"
+
+	vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|$(realpath "${PKGDESTDIR}")||g"
+	vlicense LICENSE
+}
+
+do_install() {
+	_package 5.4
+	vsed -i "${PKGDESTDIR}/usr/bin/busted" -e "s|lua5\.3|lua5\.4|"
+}
+
+lua51-busted_package() {
+	depends="${_depends//54/51}"
+	short_desc="${_desc} (5.1.x)"
+	conflicts="lua52-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-busted_package() {
+	depends="${_depends//54/52}"
+	short_desc="${_desc} (5.2.x)"
+	conflicts="lua51-busted lua53-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-busted_package() {
+	depends="${_depends//54/53}"
+	short_desc="${_desc} (5.3.x)"
+	conflicts="lua51-busted lua52-busted lua54-busted busted"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 29eba7d6e779153a737e932499d19a2f41c6e16f Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH 8/8] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..1c00c21667b75e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,8 +1,9 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
+make_check_target="test"
 configure_args="
  --ostype=linux
  --prefix=/usr
@@ -21,13 +22,14 @@ conf_files="
 make_dirs="/var/lib/prosody 0755 prosody prosody"
 makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
 depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
+checkdepends="${depends} lua54-busted"
 short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR REVIEW] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (11 preceding siblings ...)
  2025-01-04 15:09 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2025-01-04 15:48 ` Luciogi
  2025-01-04 17:27 ` ahesford
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Luciogi @ 2025-01-04 15:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

New review comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#discussion_r1903117399

Comment:
I think so you may copy text from https://opensource.org/license/mit

and paste in file and provide it in package

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (12 preceding siblings ...)
  2025-01-04 15:48 ` [PR REVIEW] " Luciogi
@ 2025-01-04 17:27 ` ahesford
  2025-01-04 17:32 ` ahesford
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ahesford @ 2025-01-04 17:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#issuecomment-2571362061

Comment:
I don't think there's value in shipping these packages for every Lua version. It adds packaging complexity and also duplicates a lot of logic everywhere. If they are needed for lua 5.4, just package them for 5.4. Let somebody who needs them for other Lua versions make the case that we should package them.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (13 preceding siblings ...)
  2025-01-04 17:27 ` ahesford
@ 2025-01-04 17:32 ` ahesford
  2025-01-04 17:35 ` [PR PATCH] [Updated] " AnInternetTroll
  2025-01-04 17:41 ` [PR PATCH] [Merged]: " ahesford
  16 siblings, 0 replies; 18+ messages in thread
From: ahesford @ 2025-01-04 17:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/53798#issuecomment-2571363102

Comment:
On closer inspection, it seems tall of these dependencies, including the apparently dead and improperly licensed `mediator_lua`, have only been added to support build-time checks. Just drop the checks and all of these new packages.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Updated] prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (14 preceding siblings ...)
  2025-01-04 17:32 ` ahesford
@ 2025-01-04 17:35 ` AnInternetTroll
  2025-01-04 17:41 ` [PR PATCH] [Merged]: " ahesford
  16 siblings, 0 replies; 18+ messages in thread
From: AnInternetTroll @ 2025-01-04 17:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

There is an updated pull request by AnInternetTroll against master on the void-packages repository

https://github.com/AnInternetTroll/void-packages user/luca/prosody
https://github.com/void-linux/void-packages/pull/53798

prosody: update to 0.12.5.
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


A patch file from https://github.com/void-linux/void-packages/pull/53798.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/prosody-53798.patch --]
[-- Type: text/x-diff, Size: 1021 bytes --]

From ab80bc009cc09746498b44938f4c68ae659bd4ae Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Wed, 1 Jan 2025 21:24:38 +0100
Subject: [PATCH] prosody: update to 0.12.5.

---
 srcpkgs/prosody/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index 261ca776c1f36b..b66f6776b5643c 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,6 +1,6 @@
 # Template file for 'prosody'
 pkgname=prosody
-version=0.12.4
+version=0.12.5
 revision=1
 build_style=configure
 configure_args="
@@ -27,7 +27,7 @@ license="MIT"
 homepage="https://prosody.im/"
 changelog="https://prosody.im/doc/release/${version}"
 distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
+checksum=778fb7707a0f10399595ba7ab9c66dd2a2288c0ae3a7fe4ab78f97d462bd399f
 
 system_accounts="prosody"
 prosody_homedir="/var/lib/prosody"

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PR PATCH] [Merged]: prosody: update to 0.12.5.
  2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
                   ` (15 preceding siblings ...)
  2025-01-04 17:35 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2025-01-04 17:41 ` ahesford
  16 siblings, 0 replies; 18+ messages in thread
From: ahesford @ 2025-01-04 17:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]

There's a merged pull request on the void-packages repository

prosody: update to 0.12.5.
https://github.com/void-linux/void-packages/pull/53798

Description:
- **New package: lua54-say-1.4.1**
- **New package: lua54-assert-1.9.0**
- **New package: lua54-cliargs-3.0.2**
- **New package: lua54-dkjson-2.8**
- **New package: lua54-mediator-1.1.2**
- **New package: lua54-penlight-1.14.0**
- **New package: lua54-system-0.4.5**
- **New package: lua54-term-0.8**
- **New package: busted-2.2.0**
- **prosody: update to 0.12.5.**

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Built on x86_64-glibc for aarch64-musl and tested correctly. 
Server comes up and I can chat with folks

Opening it now ~~to have an open PR on January 1st~~ because it uses
some work from PR #51222. So I want to signal that these 2 PRs use
the same technique (luarocks) for packaging some dependencies.

If the busted package was to not be added then this PR would be much
much smaller, just prosody. But this might be a good time to start
testing the prosody package (and whatever other lua packages that may
want to use busted (but not busted dependencies. Not sure that's a good
idea))


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-01-04 17:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-01 22:56 [PR PATCH] prosody: update to 0.12.5 AnInternetTroll
2025-01-01 23:01 ` [PR PATCH] [Updated] " AnInternetTroll
2025-01-02  8:36 ` Luciogi
2025-01-02 12:10 ` [PR REVIEW] " Johnnynator
2025-01-02 12:44 ` AnInternetTroll
2025-01-02 12:47 ` [PR PATCH] [Updated] " AnInternetTroll
2025-01-02 12:56 ` AnInternetTroll
2025-01-02 13:36 ` AnInternetTroll
2025-01-02 14:29 ` AnInternetTroll
2025-01-02 14:30 ` AnInternetTroll
2025-01-03 20:53 ` AnInternetTroll
2025-01-03 20:55 ` [PR REVIEW] " AnInternetTroll
2025-01-04 15:09 ` [PR PATCH] [Updated] " AnInternetTroll
2025-01-04 15:48 ` [PR REVIEW] " Luciogi
2025-01-04 17:27 ` ahesford
2025-01-04 17:32 ` ahesford
2025-01-04 17:35 ` [PR PATCH] [Updated] " AnInternetTroll
2025-01-04 17:41 ` [PR PATCH] [Merged]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).