Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Sile update to 0.15.4
@ 2024-07-12 13:06 Luciogi
  2024-07-12 14:33 ` [PR PATCH] [Updated] " Luciogi
                   ` (56 more replies)
  0 siblings, 57 replies; 58+ messages in thread
From: Luciogi @ 2024-07-12 13:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 36901 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..a0df6e57bcc52e
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# Template file for 'lua53-penlight'
+pkgname=lua54-penlight
+version=1.14.0
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 zip"
+makedepends="lua54-devel luarocks-lua54 lua53-devel luarocks-lua53 lua52-devel luarocks-lua52  lua51-devel luarocks-lua51 lua54-luafilesystem"
+depends="lua54 lua54-luafilesystem"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 2e01a0f21f90c68bdc6f7937b988f78835877fa0 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From bf49825a9eb26cffeac2bee5d2721b84e2a4fb1a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From cdea510ac85a7091fce4a6662186d9b29e3b1561 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From cb0bff549194880b2ac53ac6e5ebe952fb9784f3 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..c5b6460050c264
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From eb0d105032cea38c3db19020722d668bfc1c9b15 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 28f68106f544e97aa6ca37e26a6d1629318c42d6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From bb07bfafc3258abf58d205f23b8a2a2aa725abff Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 34 +++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..280852871609c0
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,34 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51"
+makedepends="lua52-devel luarocks-lua52  lua51-devel luarocks-lua51"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 2a2ebcc98dcfe5059c3b814af7365e3b6dee4ffa Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..e90f81d0654f79 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,29 +1,26 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
 	 luasocket lua51-luasec"
 fi
 
-post_install() {
-	vlicense LICENSE
-}
-
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From dfc9a2af1af67285fe5f4b88fcae5bcd0f5ad32b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..732e1649b1dc83
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,51 @@
+# Template file for 'lua53-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51"
+makedepends="lua54-devel luarocks-lua54 lua53-devel luarocks-lua53 lua52-devel luarocks-lua52  lua51-devel luarocks-lua51"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 63bd4a8324ee87b86eeaed283d5f17831d88de26 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 62 +++++++++-----------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..235d8367da3276 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
-
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +41,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +50,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +59,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
@ 2024-07-12 14:33 ` Luciogi
  2024-07-12 15:40 ` Luciogi
                   ` (55 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-12 14:33 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 37166 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..8bbc24d485c2bd
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-penlight'
+pkgname=lua54-penlight
+version=1.14.0
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 zip"
+makedepends="lua54-devel luarocks-lua54 lua53-devel luarocks-lua53 lua52-devel luarocks-lua52  lua51-devel luarocks-lua51 lua54-luafilesystem"
+depends="lua54 lua54-luafilesystem"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 500b2f342fe65fde6c662f39812b7e5aab031e00 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 494bb5bdb26253945a5c516ae6836ff5d5414b2a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 9c3f6dc3af416ba4788ab6a0d8f7ed6383a939c9 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 23f60d9a33d9e17d4a53f4ff029978fb13e02f88 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 59ede57b4306781f8ea67e45e3b47e3229777aa0 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..a9472afe3c8503
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 602cb6494c7e0807c90ef20bea2380b2ef0e50df Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 028413aa7409f034f49aa880bd30b4c2ca2fcfe5 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 414892e40c8d087f95c12b35af1f2a5eba3d210f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 34 +++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..280852871609c0
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,34 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51"
+makedepends="lua52-devel luarocks-lua52  lua51-devel luarocks-lua51"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 280dbc3692ca8feb2f33cc38cff3998004047f92 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..e90f81d0654f79 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,29 +1,26 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
 	 luasocket lua51-luasec"
 fi
 
-post_install() {
-	vlicense LICENSE
-}
-
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From b9816a03d679dd89c236811678ae1d1980b936e6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..96deff3bfb0200
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51"
+makedepends="lua54-devel luarocks-lua54 lua53-devel luarocks-lua53 lua52-devel luarocks-lua52  lua51-devel luarocks-lua51"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 6fab3e3743cc1be263aa1c40237d516339e2a104 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 62 +++++++++-----------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..235d8367da3276 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
-
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +41,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +50,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +59,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
  2024-07-12 14:33 ` [PR PATCH] [Updated] " Luciogi
@ 2024-07-12 15:40 ` Luciogi
  2024-07-12 17:33 ` Luciogi
                   ` (54 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-12 15:40 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 37052 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..4c924b18a419bb
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 385eebf51bb7db9445ce1f88936dc6cb74bd9317 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 56cbd078b5a2f49ed64362e870375f0684b591a6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 14040426cc2535d3b3dbd38197f28ac7c5c1f334 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From d1f1d7293ad07cf0d513481cbc1c95ed91142bdf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..a9472afe3c8503
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From a983d98e783498b3d07d918a4133497eaaac033e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 929a245558a6d192b9c2eb067ffe0aa76266307d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From fe26e429dca51e8b2177b50f5bc08d479b8aa3b9 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 6ed8150332555de4903f35e06cde86faaf53c762 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..e90f81d0654f79 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,29 +1,26 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
 	 luasocket lua51-luasec"
 fi
 
-post_install() {
-	vlicense LICENSE
-}
-
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From 197fc99e806d72587ff26c9e4e7bb282e1d0d807 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From decb7aa493c4da3250bbc9977b0c8d04b8e97edb Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 62 +++++++++-----------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..235d8367da3276 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
-
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +41,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +50,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +59,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
  2024-07-12 14:33 ` [PR PATCH] [Updated] " Luciogi
  2024-07-12 15:40 ` Luciogi
@ 2024-07-12 17:33 ` Luciogi
  2024-07-13  6:01 ` Luciogi
                   ` (53 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-12 17:33 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38116 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/15] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..4c924b18a419bb
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 385eebf51bb7db9445ce1f88936dc6cb74bd9317 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/15] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 56cbd078b5a2f49ed64362e870375f0684b591a6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/15] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 14040426cc2535d3b3dbd38197f28ac7c5c1f334 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/15] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From d1f1d7293ad07cf0d513481cbc1c95ed91142bdf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/15] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..a9472afe3c8503
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From a983d98e783498b3d07d918a4133497eaaac033e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/15] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 929a245558a6d192b9c2eb067ffe0aa76266307d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/15] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From fe26e429dca51e8b2177b50f5bc08d479b8aa3b9 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/15] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 6ed8150332555de4903f35e06cde86faaf53c762 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/15] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..e90f81d0654f79 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,29 +1,26 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
 	 luasocket lua51-luasec"
 fi
 
-post_install() {
-	vlicense LICENSE
-}
-
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From 197fc99e806d72587ff26c9e4e7bb282e1d0d807 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/15] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From decb7aa493c4da3250bbc9977b0c8d04b8e97edb Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/15] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 62 +++++++++-----------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..235d8367da3276 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
-
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +41,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +50,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +59,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From 31c5d13c031f433e2acd696ba3c754ec2febfb38 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 22:33:02 +0500
Subject: [PATCH 15/15] lua51-luasocket: fix cross

---
 srcpkgs/lua51-luasocket/template | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 235d8367da3276..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -19,9 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
+
 _rockname=${pkgname#lua51-}
 _rocksrel=1
 _package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
 	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
 		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (2 preceding siblings ...)
  2024-07-12 17:33 ` Luciogi
@ 2024-07-13  6:01 ` Luciogi
  2024-07-13  6:17 ` Luciogi
                   ` (52 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  6:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 42515 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/17] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..4c924b18a419bb
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 385eebf51bb7db9445ce1f88936dc6cb74bd9317 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/17] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 56cbd078b5a2f49ed64362e870375f0684b591a6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/17] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 14040426cc2535d3b3dbd38197f28ac7c5c1f334 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/17] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From d1f1d7293ad07cf0d513481cbc1c95ed91142bdf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/17] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..a9472afe3c8503
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 929a245558a6d192b9c2eb067ffe0aa76266307d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/17] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From fe26e429dca51e8b2177b50f5bc08d479b8aa3b9 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/17] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 6ed8150332555de4903f35e06cde86faaf53c762 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/17] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..e90f81d0654f79 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,29 +1,26 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
 	 luasocket lua51-luasec"
 fi
 
-post_install() {
-	vlicense LICENSE
-}
-
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From 197fc99e806d72587ff26c9e4e7bb282e1d0d807 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/17] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From decb7aa493c4da3250bbc9977b0c8d04b8e97edb Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/17] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 62 +++++++++-----------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..235d8367da3276 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
-
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +41,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +50,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +59,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From 31c5d13c031f433e2acd696ba3c754ec2febfb38 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 22:33:02 +0500
Subject: [PATCH 15/17] lua51-luasocket: fix cross

---
 srcpkgs/lua51-luasocket/template | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 235d8367da3276..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -19,9 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
+
 _rockname=${pkgname#lua51-}
 _rocksrel=1
 _package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
 	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
 		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }

From bf2c346320eca43b5ef72e2127071bd25525601b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Sat, 13 Jul 2024 02:53:01 +0500
Subject: [PATCH 16/17] fixup sile cross

---
 srcpkgs/sile/template | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index e90f81d0654f79..1084f46f0dda16 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -3,10 +3,11 @@ pkgname=sile
 version=0.15.4
 revision=1
 build_style=gnu-configure
+build_helper=rust
 hostmakedepends="jq poppler cargo rust pkg-config"
 configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
 depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
@@ -17,8 +18,8 @@ distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sil
 checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem LuaJIT LuaJIT-devel
+	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luautf8 lua51-vstruct font-sil-gentium"
 fi
 
 libtexpdf_package() {

From 571cdff8c30840a8ea617ba7ccd1007a459efb25 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Sat, 13 Jul 2024 11:01:07 +0500
Subject: [PATCH 17/17] sile: fix cross

---
 srcpkgs/sile/template | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 1084f46f0dda16..38cc88fbf141a7 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -7,7 +7,10 @@ build_helper=rust
 hostmakedepends="jq poppler cargo rust pkg-config"
 configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
 depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
@@ -19,9 +22,17 @@ checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem LuaJIT LuaJIT-devel
-	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luautf8 lua51-vstruct font-sil-gentium"
+	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr
+	 lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl
+	 lua51-luautf8 lua51-vstruct font-sil-gentium"
 fi
 
+post_configure() {
+	if [[ CROSS_BUILD ]]; then
+		vsed -i '1763s|$<|target/$(host_triplet)/release/$@|' Makefile
+	fi
+}
+
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (3 preceding siblings ...)
  2024-07-13  6:01 ` Luciogi
@ 2024-07-13  6:17 ` Luciogi
  2024-07-13  8:03 ` Luciogi
                   ` (51 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  6:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 43170 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/18] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..4c924b18a419bb
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 385eebf51bb7db9445ce1f88936dc6cb74bd9317 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/18] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 56cbd078b5a2f49ed64362e870375f0684b591a6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/18] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 14040426cc2535d3b3dbd38197f28ac7c5c1f334 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/18] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From d1f1d7293ad07cf0d513481cbc1c95ed91142bdf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/18] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..a9472afe3c8503
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 929a245558a6d192b9c2eb067ffe0aa76266307d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/18] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From fe26e429dca51e8b2177b50f5bc08d479b8aa3b9 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/18] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 6ed8150332555de4903f35e06cde86faaf53c762 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/18] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..e90f81d0654f79 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,29 +1,26 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
 	 luasocket lua51-luasec"
 fi
 
-post_install() {
-	vlicense LICENSE
-}
-
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From 197fc99e806d72587ff26c9e4e7bb282e1d0d807 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/18] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From decb7aa493c4da3250bbc9977b0c8d04b8e97edb Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/18] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 62 +++++++++-----------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..235d8367da3276 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
-
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +41,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +50,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +59,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From 31c5d13c031f433e2acd696ba3c754ec2febfb38 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 22:33:02 +0500
Subject: [PATCH 15/18] lua51-luasocket: fix cross

---
 srcpkgs/lua51-luasocket/template | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 235d8367da3276..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -19,9 +19,16 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
+
 _rockname=${pkgname#lua51-}
 _rocksrel=1
 _package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
 	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
 		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }

From bf2c346320eca43b5ef72e2127071bd25525601b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Sat, 13 Jul 2024 02:53:01 +0500
Subject: [PATCH 16/18] fixup sile cross

---
 srcpkgs/sile/template | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index e90f81d0654f79..1084f46f0dda16 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -3,10 +3,11 @@ pkgname=sile
 version=0.15.4
 revision=1
 build_style=gnu-configure
+build_helper=rust
 hostmakedepends="jq poppler cargo rust pkg-config"
 configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
 depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
@@ -17,8 +18,8 @@ distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sil
 checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem LuaJIT LuaJIT-devel
+	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luautf8 lua51-vstruct font-sil-gentium"
 fi
 
 libtexpdf_package() {

From 571cdff8c30840a8ea617ba7ccd1007a459efb25 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Sat, 13 Jul 2024 11:01:07 +0500
Subject: [PATCH 17/18] sile: fix cross

---
 srcpkgs/sile/template | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 1084f46f0dda16..38cc88fbf141a7 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -7,7 +7,10 @@ build_helper=rust
 hostmakedepends="jq poppler cargo rust pkg-config"
 configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8 lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
 depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
@@ -19,9 +22,17 @@ checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem LuaJIT LuaJIT-devel
-	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl lua51-luautf8 lua51-vstruct font-sil-gentium"
+	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr
+	 lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl
+	 lua51-luautf8 lua51-vstruct font-sil-gentium"
 fi
 
+post_configure() {
+	if [[ CROSS_BUILD ]]; then
+		vsed -i '1763s|$<|target/$(host_triplet)/release/$@|' Makefile
+	fi
+}
+
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"
 	pkg_install() {

From 37aeba7dffc3dd2c3a4a108d216cffd968c3ed4c Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Sat, 13 Jul 2024 11:17:06 +0500
Subject: [PATCH 18/18] sile: fix cross

---
 srcpkgs/sile/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 38cc88fbf141a7..f732a678fd9181 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -28,7 +28,7 @@ if [ "$CROSS_BUILD" ]; then
 fi
 
 post_configure() {
-	if [[ CROSS_BUILD ]]; then
+	if [ "$CROSS_BUILD" ]; then
 		vsed -i '1763s|$<|target/$(host_triplet)/release/$@|' Makefile
 	fi
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (4 preceding siblings ...)
  2024-07-13  6:17 ` Luciogi
@ 2024-07-13  8:03 ` Luciogi
  2024-07-13  8:34 ` Luciogi
                   ` (50 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  8:03 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 37872 bytes --]

From f3b1f8934edf80909cab0d65c11933d04d699091 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

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

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..6029d9b63117d9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 49 +++++++++++++++++++++++++++++++++
 4 files changed, 52 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..4c924b18a419bb
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 46 ++++++++++++++++++++++++++++++++++
 4 files changed, 49 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..3a51b22a39baed
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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
+}
+
+lua53-cliargs_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 385eebf51bb7db9445ce1f88936dc6cb74bd9317 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..60cd44881e8ade
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,48 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 56cbd078b5a2f49ed64362e870375f0684b591a6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..b2c4f4cd9c141c
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,45 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 14040426cc2535d3b3dbd38197f28ac7c5c1f334 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

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

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..5fa09524d0c7e7
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From d1f1d7293ad07cf0d513481cbc1c95ed91142bdf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..a9472afe3c8503
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From a983d98e783498b3d07d918a4133497eaaac033e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..af7f951d861764
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,46 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 929a245558a6d192b9c2eb067ffe0aa76266307d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From fe26e429dca51e8b2177b50f5bc08d479b8aa3b9 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 876f55e537ce741bbf681d07dda3941bc42051f4 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 35 ++++++++++++++++++++++------------
 2 files changed, 23 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..52911d45ddf719 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,38 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem LuaJIT LuaJIT-devel
+	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr
+	 lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl
+	 lua51-luautf8 lua51-vstruct font-sil-gentium"
 fi
 
-post_install() {
-	vlicense LICENSE
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 3b06f51aa08975f0c3a095e437d4e00854644998 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 9ad880b2c0ced5685b53f9ecb76d1e4237bbff8f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (5 preceding siblings ...)
  2024-07-13  8:03 ` Luciogi
@ 2024-07-13  8:34 ` Luciogi
  2024-07-13  8:34 ` Luciogi
                   ` (49 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  8:34 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
Need to fix licences

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (6 preceding siblings ...)
  2024-07-13  8:34 ` Luciogi
@ 2024-07-13  8:34 ` Luciogi
  2024-07-13  9:36 ` Luciogi
                   ` (48 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  8:34 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
Need to fix licenses

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (7 preceding siblings ...)
  2024-07-13  8:34 ` Luciogi
@ 2024-07-13  9:36 ` Luciogi
  2024-07-13  9:39 ` Luciogi
                   ` (47 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  9:36 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
- [ ] fix licenses
- [ ] use `hostmakedepends+=$depends` in sile

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (8 preceding siblings ...)
  2024-07-13  9:36 ` Luciogi
@ 2024-07-13  9:39 ` Luciogi
  2024-07-13  9:41 ` Luciogi
                   ` (46 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  9:39 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
- [ ] fix licenses
- [ ] remove redundancy  from `sile`

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (9 preceding siblings ...)
  2024-07-13  9:39 ` Luciogi
@ 2024-07-13  9:41 ` Luciogi
  2024-07-13 10:20 ` [PR PATCH] [Updated] " Luciogi
                   ` (45 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13  9:41 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
- [ ] fix licenses
- [ ] remove redundancy  from `sile`
- [ ] use lua54 in `sile`

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (10 preceding siblings ...)
  2024-07-13  9:41 ` Luciogi
@ 2024-07-13 10:20 ` Luciogi
  2024-07-13 10:20 ` Luciogi
                   ` (44 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13 10:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38600 bytes --]

From 8acdda27261459f1ae1b683162b67e7cec4deb0d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 50 ++++++++++++++++++++++++++++++++++
 4 files changed, 53 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..ec1fa196052eb8
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 5d6af49d77ad7e565dfc0ce96fa1840bc54f60a2 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From b048bca5192c098ff82ed76757a7cc9fdd05ed3d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..bbbfe29e91c285
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 9600f3b45afffa75c4a70e5314ab600700bd386c Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8a95c18f9b9e0d62d88e48c83533d4acc3703bed Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..5e577d6d65bb3a
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,54 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From db0316c11d7e861cd511413d680b6d0825519ca2 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 96674079e77a9772531f4fe25024c034079d52ed Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..5098bd1ad95e79
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,61 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From f600631a9d2701c987d895ddc1535c9b4c5113ab Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 469b97fc811dccdb32fd63e30b53dc04dcfecbf6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 37 ++++++++++++++++++++++++----------
 2 files changed, 26 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..cb21d8cb5bbfb8 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,42 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem LuaJIT LuaJIT-devel
+	 luasocket lua51-luasec lua51-cassowary lua51-compat53 lua51-cldr
+	 lua51-fluent lua51-loadkit lua51-linenoise lua51-cliargs lua51-luarepl
+	 lua51-luautf8 lua51-vstruct font-sil-gentium"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 7bc65ca956da92d9f896ba0f272ac546b712bf8b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 1749600ee1bb95e33237ec9f35b26567630f8bc6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (11 preceding siblings ...)
  2024-07-13 10:20 ` [PR PATCH] [Updated] " Luciogi
@ 2024-07-13 10:20 ` Luciogi
  2024-07-13 10:20 ` Luciogi
                   ` (43 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13 10:20 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
- [x] fix licenses
- [ ] remove redundancy  from `sile`
- [ ] use lua54 in `sile`

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (12 preceding siblings ...)
  2024-07-13 10:20 ` Luciogi
@ 2024-07-13 10:20 ` Luciogi
  2024-07-13 15:09 ` [PR PATCH] [Updated] " Luciogi
                   ` (42 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13 10:20 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
- [x] fix licenses
- [ ] remove redundancy  from `sile`

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (13 preceding siblings ...)
  2024-07-13 10:20 ` Luciogi
@ 2024-07-13 15:09 ` Luciogi
  2024-07-13 15:10 ` Luciogi
                   ` (41 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13 15:09 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38270 bytes --]

From 2d3972b3d3a12fd5fc52e9133e4a5e8b1bf1f5ed Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 8361f4b951cf4115689725db6312786ee3b2f8c1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..a60b04d119eae7
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT AND custom"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 50 ++++++++++++++++++++++++++++++++++
 4 files changed, 53 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..ec1fa196052eb8
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,50 @@
+# Template file for 'lua54-cliargs'
+pkgname=lua54-cliargs
+version=3.0.2
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 631801c13cd0b03aebd47155032c5e7078a99785 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From cecce305cfeea861b9848d0b2b0c7f66697365c0 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..bbbfe29e91c285
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="A binding for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua54"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From b9a764f98da68ea20ca8d0752c4efc22f55dd0bc Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 26a3beea6d34b80ceb1360ebef5349fbb75c7473 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..5e577d6d65bb3a
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,54 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="A reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From e43a813d5f41c76923302fda62f2a13fcfd6db7f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 0a5ff95bcbc7e94793d214aec51d35180b0f762a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..23d30e66c0e755
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,57 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends=""
+depends="lua54"
+short_desc="allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From b764b092fe0fc5465f2e9bca919f0f4951794602 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 017615dc1e1e172cc96c70a8ac9957b03156ecee Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..11f2d7e904869c 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+hostmakedepends="jq poppler cargo rust pkg-config"
+configure_args="--with-system-lua-sources --with-system-luarocks"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 815e97d961a5a49457d95bf72ae82c9ede929954 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..266e652b6c6ace
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="The cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}

From 69bbeccbc58c22e29385b26d0dc6544dc1d1ea15 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (14 preceding siblings ...)
  2024-07-13 15:09 ` [PR PATCH] [Updated] " Luciogi
@ 2024-07-13 15:10 ` Luciogi
  2024-07-13 15:47 ` [PR PATCH] [Updated] " Luciogi
                   ` (40 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13 15:10 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2226822646

Comment:
- [x] fix licenses
- [x] remove redundancy  from `sile`

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (15 preceding siblings ...)
  2024-07-13 15:10 ` Luciogi
@ 2024-07-13 15:47 ` Luciogi
  2024-08-30 11:54 ` Luciogi
                   ` (39 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-07-13 15:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` does not provide license file


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38262 bytes --]

From 2d3972b3d3a12fd5fc52e9133e4a5e8b1bf1f5ed Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 15856dccf775d588493ae8b86aba54a7c88382fc Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8e7c2fc0ea4648b95fae4e6c4c1e1e5787f4975f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From dbbfaaea58f077a8fc5dff2b612d147c14af6415 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From f2f6e7f395e561df39e33a2eb542d318b3759980 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From c8ba013fb38ad0f4c95356914cda8b75e26c730f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 134ff70ed8b676755c012409e38db4d9107e2e73 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 74e71ea4765ac9201cdb5fe9ae262a66b3fc96ff Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

---
 srcpkgs/lua51-loadkit          |  1 +
 srcpkgs/lua52-loadkit          |  1 +
 srcpkgs/lua53-loadkit          |  1 +
 srcpkgs/lua54-loadkit/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-loadkit
 create mode 120000 srcpkgs/lua52-loadkit
 create mode 120000 srcpkgs/lua53-loadkit
 create mode 100644 srcpkgs/lua54-loadkit/template

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..07c025d78e011f
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21"
+skip_extraction=$_rockspec
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/$_rockspec ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 0919a66be727cf5bcbe832be62bda65cccfa7bfa Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 392a9573eb156f751e9638e8d6e4aa7c30481f8c Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.4.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..5fec45f360c9b2 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.4
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=35d837b382ef4933489baea169264b94143da1538e71cdbc640c2f75c39e2358
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 66dea1d0d2c951f6c27a71048fee3a435d0dc79b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 5204e766eb4177af4f57ba634b274e5d21726de1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (16 preceding siblings ...)
  2024-07-13 15:47 ` [PR PATCH] [Updated] " Luciogi
@ 2024-08-30 11:54 ` Luciogi
  2024-08-30 11:55 ` Luciogi
                   ` (38 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-08-30 11:54 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` does not provide license file


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38467 bytes --]

From 0bdc536ca29e2f9c183dfe8a57800c8d520c1601 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 5e09664bb549943d65c1ad4df6c80b7708bf248b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8e458b5651a896c4d55eba71d2da6aed9e731541 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8be027c9fa9b94d30e414837b16972026cd80616 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From c32e614f781e4a48f76724ededfe5d8cfb0b07b7 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 67ba7597a781c6b8dab792fb821116922dd5c325 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 23d882733437a8313e91595726f3b982a3f8a4ad Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 4155ff8cc1cc88f8b1a31b70491eda880de98e67 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 86638b1fac4bbaaa91d09b39fb3c3ede057a3f12 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 024f73bdb333aa8372b870575ab000dd8bd5273e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 1.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..505333bbf6b2c7 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 0bac10921935e7b1c89740d5a04d0c4d2ee549c8 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From afa9bf13ade6557903edb6ed01ea764a883201c0 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (17 preceding siblings ...)
  2024-08-30 11:54 ` Luciogi
@ 2024-08-30 11:55 ` Luciogi
  2024-08-30 14:07 ` Luciogi
                   ` (37 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-08-30 11:55 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` does not provide license file


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38467 bytes --]

From 0bdc536ca29e2f9c183dfe8a57800c8d520c1601 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 5e09664bb549943d65c1ad4df6c80b7708bf248b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8e458b5651a896c4d55eba71d2da6aed9e731541 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8be027c9fa9b94d30e414837b16972026cd80616 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From c32e614f781e4a48f76724ededfe5d8cfb0b07b7 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 67ba7597a781c6b8dab792fb821116922dd5c325 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 23d882733437a8313e91595726f3b982a3f8a4ad Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 4155ff8cc1cc88f8b1a31b70491eda880de98e67 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 86638b1fac4bbaaa91d09b39fb3c3ede057a3f12 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 9d96e3cc889cd5f088fb183c612edcb2895dd1fa Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..505333bbf6b2c7 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 65d487a4f37b39f1fa0f078b399312cf91936787 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 6dbf4b9e11286e114250463eccd99db08412d28f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (18 preceding siblings ...)
  2024-08-30 11:55 ` Luciogi
@ 2024-08-30 14:07 ` Luciogi
  2024-08-30 15:13 ` Luciogi
                   ` (36 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-08-30 14:07 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` does not provide license file


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 39130 bytes --]

From 0bdc536ca29e2f9c183dfe8a57800c8d520c1601 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/15] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 5e09664bb549943d65c1ad4df6c80b7708bf248b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/15] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8e458b5651a896c4d55eba71d2da6aed9e731541 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/15] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8be027c9fa9b94d30e414837b16972026cd80616 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/15] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From c32e614f781e4a48f76724ededfe5d8cfb0b07b7 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/15] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 67ba7597a781c6b8dab792fb821116922dd5c325 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/15] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 23d882733437a8313e91595726f3b982a3f8a4ad Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/15] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 4155ff8cc1cc88f8b1a31b70491eda880de98e67 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/15] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 86638b1fac4bbaaa91d09b39fb3c3ede057a3f12 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/15] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 9d96e3cc889cd5f088fb183c612edcb2895dd1fa Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/15] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..505333bbf6b2c7 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+	fi
 }
 
 libtexpdf_package() {

From 65d487a4f37b39f1fa0f078b399312cf91936787 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/15] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 6dbf4b9e11286e114250463eccd99db08412d28f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/15] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From fa603cc18ffbb15aaf6154975b65ad7e138512a7 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 30 Aug 2024 19:07:46 +0500
Subject: [PATCH 15/15] sile: fix cross

---
 srcpkgs/sile/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 505333bbf6b2c7..d9ba4ccaa9c1eb 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -32,7 +32,7 @@ post_install() {
 
 post_configure() {
 	if [ "$CROSS_BUILD" ]; then
-		vsed -i '1763s|$<|target/*linux*/release/$@|' Makefile
+		vsed -i '1766s|$<|target/*linux*/release/$@|' Makefile
 	fi
 }
 

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (19 preceding siblings ...)
  2024-08-30 14:07 ` Luciogi
@ 2024-08-30 15:13 ` Luciogi
  2024-08-30 20:51 ` [PR REVIEW] " alerque
                   ` (35 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-08-30 15:13 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.4
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` does not provide license file


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38470 bytes --]

From 0bdc536ca29e2f9c183dfe8a57800c8d520c1601 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 5e09664bb549943d65c1ad4df6c80b7708bf248b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8e458b5651a896c4d55eba71d2da6aed9e731541 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8be027c9fa9b94d30e414837b16972026cd80616 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From c32e614f781e4a48f76724ededfe5d8cfb0b07b7 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 67ba7597a781c6b8dab792fb821116922dd5c325 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 23d882733437a8313e91595726f3b982a3f8a4ad Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 4155ff8cc1cc88f8b1a31b70491eda880de98e67 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 86638b1fac4bbaaa91d09b39fb3c3ede057a3f12 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From e6a801c8b4dd611dd6d18632353a962a76c4333a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..6474d2fbf9f9c5 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1766s|$<|target/*linux*/release/$@|' Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From 9852179501cd6c696bd22b32f6ee38209fdad935 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 734dcd4697ad7d3111126f3a630bac640bdf708e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR REVIEW] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (20 preceding siblings ...)
  2024-08-30 15:13 ` Luciogi
@ 2024-08-30 20:51 ` alerque
  2024-08-30 20:52 ` alerque
                   ` (34 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-08-30 20:51 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1739404218

Comment:
Is this something we need to fix upstream to make cross compiling work better out of the box?

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

* Re: Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (21 preceding siblings ...)
  2024-08-30 20:51 ` [PR REVIEW] " alerque
@ 2024-08-30 20:52 ` alerque
  2024-08-31  7:03 ` [PR REVIEW] " Luciogi
                   ` (33 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-08-30 20:52 UTC (permalink / raw)
  To: ml

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

New comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2322322114

Comment:
My knowledge of Void is limited, but I'm deeply familiar with Arch Linux packaging which is relatively similar, and as the upstream maintainer for SILE I can say this all looks pretty copacetic.

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

* Re: [PR REVIEW] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (22 preceding siblings ...)
  2024-08-30 20:52 ` alerque
@ 2024-08-31  7:03 ` Luciogi
  2024-08-31  7:05 ` Luciogi
                   ` (32 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-08-31  7:03 UTC (permalink / raw)
  To: ml

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

New review comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1739627652

Comment:
I am not familiar with automake.
and how this line is being generated.
with current approach, i have to rematch line number for cross building



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

* Re: [PR REVIEW] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (23 preceding siblings ...)
  2024-08-31  7:03 ` [PR REVIEW] " Luciogi
@ 2024-08-31  7:05 ` Luciogi
  2024-08-31  8:54 ` alerque
                   ` (31 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-08-31  7:05 UTC (permalink / raw)
  To: ml

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

New review comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1739627652

Comment:
I am not familiar with automake.
and how this line is being generated.
with current approach, i have to rematch line number for cross building in every release.

Can you point snippet in Makefile.am from which, I can make patch to fix this path.

fixing upstream may be not necessary, very few distro cross compiling binaries



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

* Re: [PR REVIEW] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (24 preceding siblings ...)
  2024-08-31  7:05 ` Luciogi
@ 2024-08-31  8:54 ` alerque
  2024-08-31  8:58 ` alerque
                   ` (30 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-08-31  8:54 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1739641960

Comment:
I see what's going on. We're assuming Cargo output in `target/release` but when cross compiling the target host gets added in there, `target/x86_64-unknown-linux-gnu/release`. We have a way to override the target dir that you could probably overload to address this just a touch easier:

```console
$ sed -i '/^RUST_TARGET_SUBDIR/s#= #= x86_64-unknown-linux-gnu/#' Makefile.in
```

Note you would have to specify the full host identifier, not use a wildcard like in your current hack.

This is just stuffing the host info in as a path segment before the "target" part. It's still a hack, and as far as I see we don't have a way to catch that right now. I'll look into it from our side.

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

* Re: [PR REVIEW] Sile update to 0.15.4
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (25 preceding siblings ...)
  2024-08-31  8:54 ` alerque
@ 2024-08-31  8:58 ` alerque
  2024-09-04 17:41 ` [PR PATCH] [Updated] Sile update to 0.15.5 Luciogi
                   ` (29 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-08-31  8:58 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1739642521

Comment:
https://github.com/sile-typesetter/sile/issues/2099

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (26 preceding siblings ...)
  2024-08-31  8:58 ` alerque
@ 2024-09-04 17:41 ` Luciogi
  2024-09-04 17:42 ` [PR REVIEW] " Luciogi
                   ` (28 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-09-04 17:41 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 39228 bytes --]

From 34426f031ff25a26a075869f7a38cb346c2d8c1d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/15] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 9eee67e30080b812a29b0b579902d5557dc4c250 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/15] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 32bb73be004b984ae6ecebae7346786fcba2a06c Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/15] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From eba8eee8b3092bf8077b8190733da203b623e51a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/15] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bd54dfad910605a43701db3a88d956aed0cf472e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/15] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 64a283c5e870f6a48dafe9e7492970f26e450f02 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/15] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 6e70cafe76cbf17c29db27f872f8247281b8ae0d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/15] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8aaeb4b3eb8b0e5d79ece4adb32eee0dfbb45a7a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/15] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 22f55e6cd45c37b64d47884f788775a8741a3658 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/15] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 7b08c8829619663937e94b0ab1104803f637f0c1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/15] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 34 +++++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..6474d2fbf9f9c5 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '1766s|$<|target/*linux*/release/$@|' Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From 37a441922809270ee2150d7f6d36f004adf64e54 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/15] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 02788adbec2464cc66a09c607d003e4a67fe7064 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/15] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From 6051ac69d997e17b49d57b76e529163bf5476098 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Wed, 4 Sep 2024 22:40:02 +0500
Subject: [PATCH 15/15] fixup! sile

---
 srcpkgs/sile/template | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 6474d2fbf9f9c5..fa2f15a581a942 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -32,7 +32,8 @@ post_install() {
 
 post_configure() {
 	if [ "$CROSS_BUILD" ]; then
-		vsed -i '1766s|$<|target/*linux*/release/$@|' Makefile.in
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
 	fi
 }
 

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (27 preceding siblings ...)
  2024-09-04 17:41 ` [PR PATCH] [Updated] Sile update to 0.15.5 Luciogi
@ 2024-09-04 17:42 ` Luciogi
  2024-09-05  9:48 ` alerque
                   ` (27 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-09-04 17:42 UTC (permalink / raw)
  To: ml

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

New review comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1744191759

Comment:
```
$ sed -i '/^RUST_TARGET_SUBDIR/s#= #= x86_64-unknown-linux-gnu/#' Makefile.in
```

this did not worked as expected

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (28 preceding siblings ...)
  2024-09-04 17:42 ` [PR REVIEW] " Luciogi
@ 2024-09-05  9:48 ` alerque
  2024-09-05  9:54 ` alerque
                   ` (26 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-09-05  9:48 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1745157804

Comment:
Yes there seem to be several possible scenarios and Cargo doesn't make it easy to figure out which one is at play. Cargo never has played nice with other build systems. We have an upstream issue open for tracking a proper fix to this, so I think you can just hang on to your workaround until we get it fixed in an upstream release.

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (29 preceding siblings ...)
  2024-09-05  9:48 ` alerque
@ 2024-09-05  9:54 ` alerque
  2024-09-05  9:54 ` alerque
                   ` (25 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-09-05  9:54 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1745166084

Comment:
```suggestion
distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
```

The canonical URL is the org and has been for a long time. Simon's namespace still has a forward, but that would break if he were to ever create a fork of his own to work on.

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (30 preceding siblings ...)
  2024-09-05  9:54 ` alerque
@ 2024-09-05  9:54 ` alerque
  2024-09-05 16:37 ` [PR PATCH] [Updated] " Luciogi
                   ` (24 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-09-05  9:54 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1745166384

Comment:
```suggestion
homepage="https://www.sile-typesetter.org/"
```

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (31 preceding siblings ...)
  2024-09-05  9:54 ` alerque
@ 2024-09-05 16:37 ` Luciogi
  2024-09-05 16:38 ` [PR REVIEW] " Luciogi
                   ` (23 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-09-05 16:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38611 bytes --]

From 34426f031ff25a26a075869f7a38cb346c2d8c1d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 9eee67e30080b812a29b0b579902d5557dc4c250 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 32bb73be004b984ae6ecebae7346786fcba2a06c Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From eba8eee8b3092bf8077b8190733da203b623e51a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bd54dfad910605a43701db3a88d956aed0cf472e Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 64a283c5e870f6a48dafe9e7492970f26e450f02 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 6e70cafe76cbf17c29db27f872f8247281b8ae0d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 8aaeb4b3eb8b0e5d79ece4adb32eee0dfbb45a7a Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 22f55e6cd45c37b64d47884f788775a8741a3658 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 80449d8a948723b6e1d321c2314b26e22eeba9f6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 37 +++++++++++++++++++++++-----------
 2 files changed, 25 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..d505a858860279 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,40 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From e0d37d937c11bb4fbb0c43db9d44c4bb5b0a3d39 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 75326ff922cdbfc21274467c33d177dcf29113d0 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (32 preceding siblings ...)
  2024-09-05 16:37 ` [PR PATCH] [Updated] " Luciogi
@ 2024-09-05 16:38 ` Luciogi
  2024-11-25  9:48 ` [PR PATCH] [Updated] " Luciogi
                   ` (22 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-09-05 16:38 UTC (permalink / raw)
  To: ml

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

New review comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1745859962

Comment:
fixed

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (33 preceding siblings ...)
  2024-09-05 16:38 ` [PR REVIEW] " Luciogi
@ 2024-11-25  9:48 ` Luciogi
  2024-11-25 17:05 ` Luciogi
                   ` (21 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-25  9:48 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 39663 bytes --]

From fbee34343858a01d9a7fd676855978bf520afd2d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/15] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 6169e646938e8f8f3bba697705edb1ddf619b777 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/15] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 426ea3c4241dedcb14253079c6e5cb16e18177ab Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/15] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 18b63117c2cb03ff50720ad2a7667f0f2f48ac28 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/15] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bdf599ffed4be1775f44173313dd689e3485a129 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/15] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From a4c32a86c3540c81fe2cdb9187812a0287a15617 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/15] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From d8df7c3f9dbc3800372d2466f0eaf17e6b66a30b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/15] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From b4ac0ee9ecf9bec93874aa1cdb27dd9510896384 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/15] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 81ae3dc5fa33bc6711ec074aa4b290bea03cd4a1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/15] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 79b1786f1b692a8ef450c96731d02ff914a526af Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/15] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 37 +++++++++++++++++++++++-----------
 2 files changed, 25 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..d505a858860279 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,40 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From 4507ffb6d717887c1af01cf7ab46cce4ab611467 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/15] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From f2763dcba6b1a824c8a895e5de9091b6438af988 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/15] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From b9110252e87a90efe3997b1a426ce883553cf26b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 14:48:26 +0500
Subject: [PATCH 15/15] sile: update to 0.15.6.

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

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index d505a858860279..33fb0f06cb6e78 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,6 +1,6 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.5
+version=0.15.6
 revision=1
 build_style=gnu-configure
 build_helper=rust
@@ -20,7 +20,7 @@ maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
+checksum=0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (34 preceding siblings ...)
  2024-11-25  9:48 ` [PR PATCH] [Updated] " Luciogi
@ 2024-11-25 17:05 ` Luciogi
  2024-11-25 20:18 ` [PR REVIEW] " alerque
                   ` (20 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-25 17:05 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2498570521

Comment:
@alerque Hi, I am building 0.15.6 for cross archs

i am getting error about `rusile.so`, but it is not present at rust binary output directory, instead there is `librusile.so`

![image](https://github.com/user-attachments/assets/e9ad9cdc-19dc-4a06-9037-7b288e73fff2)


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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (35 preceding siblings ...)
  2024-11-25 17:05 ` Luciogi
@ 2024-11-25 20:18 ` alerque
  2024-11-25 20:21 ` alerque
                   ` (19 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-25 20:18 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1857294332

Comment:
This is messing you up. It was designed to fix one instance of the Makefile looking in the Rust `target/release` dir, but as of v0.15.6 there are two instances of such install commands. You are patching the new second one using code meant to match the first one and hence cross wiring what is being looked for when.

I suggest dropping this hack entirely and using whatever Void's equivalent of Arch's `prepare()` phase (i.e. runs before configure, not after) to cherry pick 19c7c1d4. That should fix the problem properly. You should be able to download that patch as a source and apply it before configuring.

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (36 preceding siblings ...)
  2024-11-25 20:18 ` [PR REVIEW] " alerque
@ 2024-11-25 20:21 ` alerque
  2024-11-25 20:26 ` [PR REVIEW] " alerque
                   ` (18 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-25 20:21 UTC (permalink / raw)
  To: ml

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

New comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2498955735

Comment:
> i am getting error about `rusile.so`, but it is not present at rust binary output directory, instead there is `librusile.so`

The original code is installing target/release/librusile.so -> rusile.so. Your monkey patch for the cross compile thing is screwing that up because your are catching this now line instead of the original you tried to match.

```make
rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
```

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (37 preceding siblings ...)
  2024-11-25 20:21 ` alerque
@ 2024-11-25 20:26 ` alerque
  2024-11-25 20:27 ` alerque
                   ` (17 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-25 20:26 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1857294332

Comment:
This is messing you up. It was designed to fix one instance of the Makefile looking in the Rust `target/release` dir, but as of v0.15.6 there are two instances of such install commands. You are patching the new second one using code meant to match the first one and hence cross wiring what is being looked for when.

I suggest dropping this hack entirely and using whatever Void's equivalent of Arch's `prepare()` phase (i.e. runs before configure, not after) to cherry pick [19c7c1d4](https://github.com/sile-typesetter/sile/commit/19c7c1d4cf07ac7baa7c4c6b24d0d82f2dcea0af.patch). That should fix the problem properly. You should be able to download that patch as a source and apply it before configuring.

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (38 preceding siblings ...)
  2024-11-25 20:26 ` [PR REVIEW] " alerque
@ 2024-11-25 20:27 ` alerque
  2024-11-26  8:51 ` [PR PATCH] [Updated] " Luciogi
                   ` (16 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-25 20:27 UTC (permalink / raw)
  To: ml

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

New comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2498955735

Comment:
> i am getting error about `rusile.so`, but it is not present at rust binary output directory, instead there is `librusile.so`

The original code is installing target/release/librusile.so -> rusile.so. Your monkey patch for the cross compile thing is screwing that up because your are catching this new line instead of the original you intended to match.

```make
rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
```

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (39 preceding siblings ...)
  2024-11-25 20:27 ` alerque
@ 2024-11-26  8:51 ` Luciogi
  2024-11-26  8:59 ` Luciogi
                   ` (15 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26  8:51 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 46284 bytes --]

From fbee34343858a01d9a7fd676855978bf520afd2d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/17] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 426ea3c4241dedcb14253079c6e5cb16e18177ab Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/17] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 18b63117c2cb03ff50720ad2a7667f0f2f48ac28 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/17] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bdf599ffed4be1775f44173313dd689e3485a129 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/17] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From a4c32a86c3540c81fe2cdb9187812a0287a15617 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/17] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From b4ac0ee9ecf9bec93874aa1cdb27dd9510896384 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/17] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 81ae3dc5fa33bc6711ec074aa4b290bea03cd4a1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/17] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 79b1786f1b692a8ef450c96731d02ff914a526af Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/17] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 37 +++++++++++++++++++++++-----------
 2 files changed, 25 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..d505a858860279 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,40 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From 4507ffb6d717887c1af01cf7ab46cce4ab611467 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/17] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From f2763dcba6b1a824c8a895e5de9091b6438af988 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/17] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From b9110252e87a90efe3997b1a426ce883553cf26b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 14:48:26 +0500
Subject: [PATCH 15/17] sile: update to 0.15.6.

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

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index d505a858860279..33fb0f06cb6e78 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,6 +1,6 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.5
+version=0.15.6
 revision=1
 build_style=gnu-configure
 build_helper=rust
@@ -20,7 +20,7 @@ maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
+checksum=0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"

From c90008e6590c94a8ab4e56a5b45a94a6c6e134b4 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 15:30:09 +0500
Subject: [PATCH 16/17] fixup sile cross

---
 srcpkgs/sile/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 33fb0f06cb6e78..cfc036f276f2e0 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -32,8 +32,13 @@ post_install() {
 
 post_configure() {
 	if [ "$CROSS_BUILD" ]; then
-		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		# Fix path for sile
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
 		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+
+		# Fix path for rusile
+		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib|target/*linux*/release/\$@|" Makefile.in
 	fi
 }
 

From 5c728fde8da0459a6a484e68a209a090db1962cf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Tue, 26 Nov 2024 13:50:38 +0500
Subject: [PATCH 17/17] fixup sile cross 0.15.6

---
 srcpkgs/sile/patches/upstream-cross.patch | 64 +++++++++++++++++++++++
 srcpkgs/sile/template                     | 26 ++++-----
 2 files changed, 78 insertions(+), 12 deletions(-)
 create mode 100644 srcpkgs/sile/patches/upstream-cross.patch

diff --git a/srcpkgs/sile/patches/upstream-cross.patch b/srcpkgs/sile/patches/upstream-cross.patch
new file mode 100644
index 00000000000000..939619b58cba48
--- /dev/null
+++ b/srcpkgs/sile/patches/upstream-cross.patch
@@ -0,0 +1,64 @@
+From 19c7c1d4cf07ac7baa7c4c6b24d0d82f2dcea0af Mon Sep 17 00:00:00 2001
+From: Caleb Maclennan <caleb@alerque.com>
+Date: Mon, 25 Nov 2024 12:27:25 +0300
+Subject: [PATCH] fix(build): Support cross-compilation of Rust binaries
+ (#2178)
+
+---
+ Makefile.am                       | 2 +-
+ build-aux/que_rust_boilerplate.am | 4 ++--
+ build-aux/que_rust_boilerplate.m4 | 8 ++++++--
+ 3 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index a5fc43102..bb44bdb5e 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -179,7 +179,7 @@ CARGO_FEATURE_ARGS += --features variations
+ endif
+ 
+ rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
+-	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
++	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
+ 	$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
+ 
+ DEPDIR := .deps
+diff --git a/build-aux/que_rust_boilerplate.am b/build-aux/que_rust_boilerplate.am
+index a1ba65af4..26de4ef58 100644
+--- a/build-aux/que_rust_boilerplate.am
++++ b/build-aux/que_rust_boilerplate.am
+@@ -57,8 +57,8 @@ $(COMPLETIONS_OUT_DIR)/_$(TRANSFORMED_PACKAGE_NAME): $(CARGO_BIN) | $(COMPLETION
+ $(_RUST_OUT) $(CARGO_BIN): $(@PACKAGE_VAR@_SOURCES) $(nodist_@PACKAGE_VAR@_SOURCES) $(EXTRA_@PACKAGE_VAR@_SOURCES)
+ 	set -e
+ 	export AUTOTOOLS_DEPENDENCIES="$^"
+-	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
+-	$(CARGO_ENV) $(CARGO) build --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
++	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
++	$(CARGO_ENV) $(CARGO) build  --target $(CARGO_TARGET_TRIPLE) --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
+ 		$(JQ) -sr 'map(select(.reason == "build-script-executed")) | last | .out_dir' > $(_RUST_OUT)
+ 
+ RUST_DEVELOPER_TARGETS = cargo-test clippy rustfmt
+diff --git a/build-aux/que_rust_boilerplate.m4 b/build-aux/que_rust_boilerplate.m4
+index 36fa0923d..bc3d5ffaf 100644
+--- a/build-aux/que_rust_boilerplate.m4
++++ b/build-aux/que_rust_boilerplate.m4
+@@ -22,13 +22,17 @@ AC_DEFUN_ONCE([QUE_RUST_BOILERPLATE], [
+                 QUE_PROGVAR([rustfmt])
+         ])
+ 
++        AC_ARG_VAR(CARGO_TARGET_TRIPLE, "Target triple for Rust compilations")
++        if test -z "$CARGO_TARGET_TRIPLE"; then
++                CARGO_TARGET_TRIPLE="$($RUSTC -vV | $SED -n 's/host: //p')"
++        fi
+         AC_MSG_CHECKING([whether to build Rust code with debugging information])
+         AM_COND_IF([DEBUG_RELEASE], [
+                 AC_MSG_RESULT(yes)
+-                RUST_TARGET_SUBDIR=debug
++                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/debug
+         ], [
+                 AC_MSG_RESULT(no)
+-                RUST_TARGET_SUBDIR=release
++                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/release
+         ])
+         AC_SUBST([RUST_TARGET_SUBDIR])
+ 
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index cfc036f276f2e0..dafe53537e1d68 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -5,7 +5,7 @@ revision=1
 build_style=gnu-configure
 build_helper=rust
 configure_args="--with-system-lua-sources --with-system-luarocks"
-hostmakedepends="jq poppler cargo rust pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config automake"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
  lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
  lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
@@ -30,17 +30,19 @@ post_install() {
 	vlicense LICENSE.md
 }
 
-post_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		# Fix path for sile
-		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
-		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
-
-		# Fix path for rusile
-		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
-		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib|target/*linux*/release/\$@|" Makefile.in
-	fi
-}
+#post_configure() {
+#	if [ "$CROSS_BUILD" ]; then
+#		# Fix path for sile
+#		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
+#		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+#
+#		# Fix path for rusile
+#		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
+#		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib$@|target/*linux*/release/$@|" Makefile.in
+#
+#		vsed -i "1945s|rusile\.so|librusile.so|" Makefile.in
+#	fi
+#}
 
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (40 preceding siblings ...)
  2024-11-26  8:51 ` [PR PATCH] [Updated] " Luciogi
@ 2024-11-26  8:59 ` Luciogi
  2024-11-26  9:16 ` alerque
                   ` (14 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26  8:59 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2500038888

Comment:
> > i am getting error about `rusile.so`, but it is not present at rust binary output directory, instead there is `librusile.so`
> 
> The original code is installing target/release/librusile.so -> rusile.so. Your monkey patch for the cross compile thing is screwing that up because your are catching this new line instead of the original you intended to match.
> 
> ```makefile
> rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
> 	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
> $(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
> ```

After adding upstream patch, removing hacks, now sile got to linking error https://github.com/void-linux/void-packages/actions/runs/12026998189/job/33527112308?pr=51222#step:7:4168

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (41 preceding siblings ...)
  2024-11-26  8:59 ` Luciogi
@ 2024-11-26  9:16 ` alerque
  2024-11-26  9:18 ` Luciogi
                   ` (13 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-26  9:16 UTC (permalink / raw)
  To: ml

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

New comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2500074330

Comment:
I see where you added the patch to the repository but I do not see where it is being applied. Is that automatic just by the patch existing? Or did it not actually get applied?

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (42 preceding siblings ...)
  2024-11-26  9:16 ` alerque
@ 2024-11-26  9:18 ` Luciogi
  2024-11-26  9:20 ` Luciogi
                   ` (12 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26  9:18 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2500078521

Comment:
> I see where you added the patch to the repository but I do not see where it is being applied. Is that automatic just by the patch existing? Or did it not actually get applied?

patches are applied automatically, before configure function runs

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (43 preceding siblings ...)
  2024-11-26  9:18 ` Luciogi
@ 2024-11-26  9:20 ` Luciogi
  2024-11-26  9:28 ` [PR REVIEW] " Luciogi
                   ` (11 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26  9:20 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2500078521

Comment:
> I see where you added the patch to the repository but I do not see where it is being applied. Is that automatic just by the patch existing? Or did it not actually get applied?

patches are applied automatically, before configure function runs

edit: it can be seen here https://github.com/void-linux/void-packages/actions/runs/12026998189/job/33527112308?pr=51222#step:7:3163

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (44 preceding siblings ...)
  2024-11-26  9:20 ` Luciogi
@ 2024-11-26  9:28 ` Luciogi
  2024-11-26 10:00 ` alerque
                   ` (10 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26  9:28 UTC (permalink / raw)
  To: ml

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

New review comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1858121418

Comment:
patching this file is causing linking error i.e `build-aux/que_rust_boilerplate.m4`

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (45 preceding siblings ...)
  2024-11-26  9:28 ` [PR REVIEW] " Luciogi
@ 2024-11-26 10:00 ` alerque
  2024-11-26 10:40 ` alerque
                   ` (9 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-26 10:00 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1858175834

Comment:
Yes, somehow the automatic GCC/LD build stuff is trying to take over the Rust-built binary. That's not supposed to happen. I do see to recall something like this turning up before, but I can't remember what the mitigation was.

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

* Re: [PR REVIEW] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (46 preceding siblings ...)
  2024-11-26 10:00 ` alerque
@ 2024-11-26 10:40 ` alerque
  2024-11-26 14:18 ` alerque
                   ` (8 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-26 10:40 UTC (permalink / raw)
  To: ml

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

New review comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#discussion_r1858237468

Comment:
I see this patch is getting applied, but it is not being *used* because after patching the build moves straight on to running `./configure` which is just the pre-generated one that comes in the tarball. Since the patch updates the *template* and *macros, the configure script needs to be regenerated before use to actually reflect the changes in the patch.

`autoreconf -fi` should do the trick, run after patching and before configure starts:

```
2024-11-26T08:55:11.3883538Z sile-0.15.6.tar.zst: 3254KB [avg rate: 26GB/s]
2024-11-26T08:55:11.3999482Z ^[[97m^[[1m=> sile-0.15.6_1: verifying checksum for distfile 'sile-0.15.6.tar.zst'... ^[[m^[[97m^[[1mOK.
2024-11-26T08:55:11.4303411Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: running do-extract hook: 00-distfiles ...
2024-11-26T08:55:11.4343450Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: extracting distfile(s), please wait...
2024-11-26T08:55:11.5958461Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: running do-patch hook: 00-patches ...
2024-11-26T08:55:11.5993810Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: patching: upstream-cross.patch.
2024-11-26T08:55:11.6318198Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: running pre-configure hook: 00-gnu-configure-asneeded ...
2024-11-26T08:55:11.6441305Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: running pre-configure hook: 01-override-config ...
2024-11-26T08:55:11.6699671Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: running pre-configure hook: 02-script-wrapper ...
2024-11-26T08:55:11.6810168Z ^[[m^[[97m^[[1m=> sile-0.15.6_1: running do_configure ...
2024-11-26T08:55:11.7922483Z ^[[mchecking for a BSD-compatible install... /builddir/.xbps-sile/wrappers/install -c
2024-11-26T08:55:11.7950440Z checking whether build environment is sane... yes
2024-11-26T08:55:11.8026031Z checking for a race-free mkdir -p... /usr/bin/mkdir -p
```

This log suggests there might be some pre-configure hook you can utilize to trigger autoreconf, or there might even be a premade hook just for that since it is a common operation to need to run on autotools builds, but I don't know the ins and outs of Void packaging scripts.

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

* Re: Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (47 preceding siblings ...)
  2024-11-26 10:40 ` alerque
@ 2024-11-26 14:18 ` alerque
  2024-11-26 15:50 ` [PR PATCH] [Updated] " Luciogi
                   ` (7 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-26 14:18 UTC (permalink / raw)
  To: ml

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

New comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2500925122

Comment:
I just released SILE v0.15.7 with this patch baked in, so you can drop the patch and not worry about having to run `autoreconf`. Ping me if that still has any trouble building and I'll look into it.

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (48 preceding siblings ...)
  2024-11-26 14:18 ` alerque
@ 2024-11-26 15:50 ` Luciogi
  2024-11-26 16:25 ` Luciogi
                   ` (6 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26 15:50 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 52052 bytes --]

From fbee34343858a01d9a7fd676855978bf520afd2d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/18] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 426ea3c4241dedcb14253079c6e5cb16e18177ab Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/18] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 18b63117c2cb03ff50720ad2a7667f0f2f48ac28 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/18] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bdf599ffed4be1775f44173313dd689e3485a129 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/18] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From a4c32a86c3540c81fe2cdb9187812a0287a15617 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/18] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From b4ac0ee9ecf9bec93874aa1cdb27dd9510896384 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/18] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 81ae3dc5fa33bc6711ec074aa4b290bea03cd4a1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/18] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 79b1786f1b692a8ef450c96731d02ff914a526af Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/18] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 37 +++++++++++++++++++++++-----------
 2 files changed, 25 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..d505a858860279 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,40 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From 4507ffb6d717887c1af01cf7ab46cce4ab611467 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/18] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From f2763dcba6b1a824c8a895e5de9091b6438af988 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/18] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From b9110252e87a90efe3997b1a426ce883553cf26b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 14:48:26 +0500
Subject: [PATCH 15/18] sile: update to 0.15.6.

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

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index d505a858860279..33fb0f06cb6e78 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,6 +1,6 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.5
+version=0.15.6
 revision=1
 build_style=gnu-configure
 build_helper=rust
@@ -20,7 +20,7 @@ maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
+checksum=0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"

From c90008e6590c94a8ab4e56a5b45a94a6c6e134b4 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 15:30:09 +0500
Subject: [PATCH 16/18] fixup sile cross

---
 srcpkgs/sile/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 33fb0f06cb6e78..cfc036f276f2e0 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -32,8 +32,13 @@ post_install() {
 
 post_configure() {
 	if [ "$CROSS_BUILD" ]; then
-		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		# Fix path for sile
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
 		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+
+		# Fix path for rusile
+		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib|target/*linux*/release/\$@|" Makefile.in
 	fi
 }
 

From 5c728fde8da0459a6a484e68a209a090db1962cf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Tue, 26 Nov 2024 13:50:38 +0500
Subject: [PATCH 17/18] fixup sile cross 0.15.6

---
 srcpkgs/sile/patches/upstream-cross.patch | 64 +++++++++++++++++++++++
 srcpkgs/sile/template                     | 26 ++++-----
 2 files changed, 78 insertions(+), 12 deletions(-)
 create mode 100644 srcpkgs/sile/patches/upstream-cross.patch

diff --git a/srcpkgs/sile/patches/upstream-cross.patch b/srcpkgs/sile/patches/upstream-cross.patch
new file mode 100644
index 00000000000000..939619b58cba48
--- /dev/null
+++ b/srcpkgs/sile/patches/upstream-cross.patch
@@ -0,0 +1,64 @@
+From 19c7c1d4cf07ac7baa7c4c6b24d0d82f2dcea0af Mon Sep 17 00:00:00 2001
+From: Caleb Maclennan <caleb@alerque.com>
+Date: Mon, 25 Nov 2024 12:27:25 +0300
+Subject: [PATCH] fix(build): Support cross-compilation of Rust binaries
+ (#2178)
+
+---
+ Makefile.am                       | 2 +-
+ build-aux/que_rust_boilerplate.am | 4 ++--
+ build-aux/que_rust_boilerplate.m4 | 8 ++++++--
+ 3 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index a5fc43102..bb44bdb5e 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -179,7 +179,7 @@ CARGO_FEATURE_ARGS += --features variations
+ endif
+ 
+ rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
+-	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
++	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
+ 	$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
+ 
+ DEPDIR := .deps
+diff --git a/build-aux/que_rust_boilerplate.am b/build-aux/que_rust_boilerplate.am
+index a1ba65af4..26de4ef58 100644
+--- a/build-aux/que_rust_boilerplate.am
++++ b/build-aux/que_rust_boilerplate.am
+@@ -57,8 +57,8 @@ $(COMPLETIONS_OUT_DIR)/_$(TRANSFORMED_PACKAGE_NAME): $(CARGO_BIN) | $(COMPLETION
+ $(_RUST_OUT) $(CARGO_BIN): $(@PACKAGE_VAR@_SOURCES) $(nodist_@PACKAGE_VAR@_SOURCES) $(EXTRA_@PACKAGE_VAR@_SOURCES)
+ 	set -e
+ 	export AUTOTOOLS_DEPENDENCIES="$^"
+-	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
+-	$(CARGO_ENV) $(CARGO) build --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
++	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
++	$(CARGO_ENV) $(CARGO) build  --target $(CARGO_TARGET_TRIPLE) --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
+ 		$(JQ) -sr 'map(select(.reason == "build-script-executed")) | last | .out_dir' > $(_RUST_OUT)
+ 
+ RUST_DEVELOPER_TARGETS = cargo-test clippy rustfmt
+diff --git a/build-aux/que_rust_boilerplate.m4 b/build-aux/que_rust_boilerplate.m4
+index 36fa0923d..bc3d5ffaf 100644
+--- a/build-aux/que_rust_boilerplate.m4
++++ b/build-aux/que_rust_boilerplate.m4
+@@ -22,13 +22,17 @@ AC_DEFUN_ONCE([QUE_RUST_BOILERPLATE], [
+                 QUE_PROGVAR([rustfmt])
+         ])
+ 
++        AC_ARG_VAR(CARGO_TARGET_TRIPLE, "Target triple for Rust compilations")
++        if test -z "$CARGO_TARGET_TRIPLE"; then
++                CARGO_TARGET_TRIPLE="$($RUSTC -vV | $SED -n 's/host: //p')"
++        fi
+         AC_MSG_CHECKING([whether to build Rust code with debugging information])
+         AM_COND_IF([DEBUG_RELEASE], [
+                 AC_MSG_RESULT(yes)
+-                RUST_TARGET_SUBDIR=debug
++                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/debug
+         ], [
+                 AC_MSG_RESULT(no)
+-                RUST_TARGET_SUBDIR=release
++                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/release
+         ])
+         AC_SUBST([RUST_TARGET_SUBDIR])
+ 
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index cfc036f276f2e0..dafe53537e1d68 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -5,7 +5,7 @@ revision=1
 build_style=gnu-configure
 build_helper=rust
 configure_args="--with-system-lua-sources --with-system-luarocks"
-hostmakedepends="jq poppler cargo rust pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config automake"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
  lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
  lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
@@ -30,17 +30,19 @@ post_install() {
 	vlicense LICENSE.md
 }
 
-post_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		# Fix path for sile
-		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
-		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
-
-		# Fix path for rusile
-		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
-		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib|target/*linux*/release/\$@|" Makefile.in
-	fi
-}
+#post_configure() {
+#	if [ "$CROSS_BUILD" ]; then
+#		# Fix path for sile
+#		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
+#		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+#
+#		# Fix path for rusile
+#		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
+#		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib$@|target/*linux*/release/$@|" Makefile.in
+#
+#		vsed -i "1945s|rusile\.so|librusile.so|" Makefile.in
+#	fi
+#}
 
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"

From f73121adfdd758145a02d591d1d141f9f0083707 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Tue, 26 Nov 2024 20:50:21 +0500
Subject: [PATCH 18/18] fixup sile cross 0.15.7

---
 srcpkgs/sile/patches/upstream-cross.patch | 64 -----------------------
 srcpkgs/sile/template                     | 24 +++------
 2 files changed, 8 insertions(+), 80 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/upstream-cross.patch

diff --git a/srcpkgs/sile/patches/upstream-cross.patch b/srcpkgs/sile/patches/upstream-cross.patch
deleted file mode 100644
index 939619b58cba48..00000000000000
--- a/srcpkgs/sile/patches/upstream-cross.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 19c7c1d4cf07ac7baa7c4c6b24d0d82f2dcea0af Mon Sep 17 00:00:00 2001
-From: Caleb Maclennan <caleb@alerque.com>
-Date: Mon, 25 Nov 2024 12:27:25 +0300
-Subject: [PATCH] fix(build): Support cross-compilation of Rust binaries
- (#2178)
-
----
- Makefile.am                       | 2 +-
- build-aux/que_rust_boilerplate.am | 4 ++--
- build-aux/que_rust_boilerplate.m4 | 8 ++++++--
- 3 files changed, 9 insertions(+), 5 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index a5fc43102..bb44bdb5e 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -179,7 +179,7 @@ CARGO_FEATURE_ARGS += --features variations
- endif
- 
- rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
--	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
-+	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
- 	$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
- 
- DEPDIR := .deps
-diff --git a/build-aux/que_rust_boilerplate.am b/build-aux/que_rust_boilerplate.am
-index a1ba65af4..26de4ef58 100644
---- a/build-aux/que_rust_boilerplate.am
-+++ b/build-aux/que_rust_boilerplate.am
-@@ -57,8 +57,8 @@ $(COMPLETIONS_OUT_DIR)/_$(TRANSFORMED_PACKAGE_NAME): $(CARGO_BIN) | $(COMPLETION
- $(_RUST_OUT) $(CARGO_BIN): $(@PACKAGE_VAR@_SOURCES) $(nodist_@PACKAGE_VAR@_SOURCES) $(EXTRA_@PACKAGE_VAR@_SOURCES)
- 	set -e
- 	export AUTOTOOLS_DEPENDENCIES="$^"
--	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
--	$(CARGO_ENV) $(CARGO) build --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
-+	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
-+	$(CARGO_ENV) $(CARGO) build  --target $(CARGO_TARGET_TRIPLE) --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
- 		$(JQ) -sr 'map(select(.reason == "build-script-executed")) | last | .out_dir' > $(_RUST_OUT)
- 
- RUST_DEVELOPER_TARGETS = cargo-test clippy rustfmt
-diff --git a/build-aux/que_rust_boilerplate.m4 b/build-aux/que_rust_boilerplate.m4
-index 36fa0923d..bc3d5ffaf 100644
---- a/build-aux/que_rust_boilerplate.m4
-+++ b/build-aux/que_rust_boilerplate.m4
-@@ -22,13 +22,17 @@ AC_DEFUN_ONCE([QUE_RUST_BOILERPLATE], [
-                 QUE_PROGVAR([rustfmt])
-         ])
- 
-+        AC_ARG_VAR(CARGO_TARGET_TRIPLE, "Target triple for Rust compilations")
-+        if test -z "$CARGO_TARGET_TRIPLE"; then
-+                CARGO_TARGET_TRIPLE="$($RUSTC -vV | $SED -n 's/host: //p')"
-+        fi
-         AC_MSG_CHECKING([whether to build Rust code with debugging information])
-         AM_COND_IF([DEBUG_RELEASE], [
-                 AC_MSG_RESULT(yes)
--                RUST_TARGET_SUBDIR=debug
-+                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/debug
-         ], [
-                 AC_MSG_RESULT(no)
--                RUST_TARGET_SUBDIR=release
-+                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/release
-         ])
-         AC_SUBST([RUST_TARGET_SUBDIR])
- 
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index dafe53537e1d68..c919ad3e3c9c57 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,11 +1,11 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.6
+version=0.15.7
 revision=1
 build_style=gnu-configure
 build_helper=rust
 configure_args="--with-system-lua-sources --with-system-luarocks"
-hostmakedepends="jq poppler cargo rust pkg-config automake"
+hostmakedepends="jq poppler cargo rust pkg-config automake luarocks-lua51"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
  lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
  lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
@@ -20,7 +20,7 @@ maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321
+checksum=3e353a41f9fe1532f7bedeba9a42009ffb9758c3cf947f222ba076eb87a4222b
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
@@ -30,19 +30,11 @@ post_install() {
 	vlicense LICENSE.md
 }
 
-#post_configure() {
-#	if [ "$CROSS_BUILD" ]; then
-#		# Fix path for sile
-#		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
-#		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
-#
-#		# Fix path for rusile
-#		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
-#		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib$@|target/*linux*/release/$@|" Makefile.in
-#
-#		vsed -i "1945s|rusile\.so|librusile.so|" Makefile.in
-#	fi
-#}
+pre_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		export CARGO_TARGET_TRIPLE=${XBPS_RUST_TARGET}
+	fi
+}
 
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (49 preceding siblings ...)
  2024-11-26 15:50 ` [PR PATCH] [Updated] " Luciogi
@ 2024-11-26 16:25 ` Luciogi
  2024-11-26 16:36 ` Luciogi
                   ` (5 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26 16:25 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 52060 bytes --]

From fbee34343858a01d9a7fd676855978bf520afd2d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/18] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

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

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 426ea3c4241dedcb14253079c6e5cb16e18177ab Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/18] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 18b63117c2cb03ff50720ad2a7667f0f2f48ac28 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/18] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bdf599ffed4be1775f44173313dd689e3485a129 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/18] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From a4c32a86c3540c81fe2cdb9187812a0287a15617 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/18] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From b4ac0ee9ecf9bec93874aa1cdb27dd9510896384 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/18] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 81ae3dc5fa33bc6711ec074aa4b290bea03cd4a1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/18] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 79b1786f1b692a8ef450c96731d02ff914a526af Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/18] sile: update to 0.15.5.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 37 +++++++++++++++++++++++-----------
 2 files changed, 25 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..d505a858860279 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,40 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.5
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+post_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+	fi
 }
 
 libtexpdf_package() {

From 4507ffb6d717887c1af01cf7ab46cce4ab611467 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/18] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From f2763dcba6b1a824c8a895e5de9091b6438af988 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/18] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From b9110252e87a90efe3997b1a426ce883553cf26b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 14:48:26 +0500
Subject: [PATCH 15/18] sile: update to 0.15.6.

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

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index d505a858860279..33fb0f06cb6e78 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,6 +1,6 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.5
+version=0.15.6
 revision=1
 build_style=gnu-configure
 build_helper=rust
@@ -20,7 +20,7 @@ maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=d20137b02d16302d287670fd285ad28ac3b8d3af916460aa6bc8cbff9321b9f9
+checksum=0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"

From c90008e6590c94a8ab4e56a5b45a94a6c6e134b4 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Mon, 25 Nov 2024 15:30:09 +0500
Subject: [PATCH 16/18] fixup sile cross

---
 srcpkgs/sile/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 33fb0f06cb6e78..cfc036f276f2e0 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -32,8 +32,13 @@ post_install() {
 
 post_configure() {
 	if [ "$CROSS_BUILD" ]; then
-		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile --line-number | cut -d':' -f1)
+		# Fix path for sile
+		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
 		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+
+		# Fix path for rusile
+		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
+		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib|target/*linux*/release/\$@|" Makefile.in
 	fi
 }
 

From 5c728fde8da0459a6a484e68a209a090db1962cf Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Tue, 26 Nov 2024 13:50:38 +0500
Subject: [PATCH 17/18] fixup sile cross 0.15.6

---
 srcpkgs/sile/patches/upstream-cross.patch | 64 +++++++++++++++++++++++
 srcpkgs/sile/template                     | 26 ++++-----
 2 files changed, 78 insertions(+), 12 deletions(-)
 create mode 100644 srcpkgs/sile/patches/upstream-cross.patch

diff --git a/srcpkgs/sile/patches/upstream-cross.patch b/srcpkgs/sile/patches/upstream-cross.patch
new file mode 100644
index 00000000000000..939619b58cba48
--- /dev/null
+++ b/srcpkgs/sile/patches/upstream-cross.patch
@@ -0,0 +1,64 @@
+From 19c7c1d4cf07ac7baa7c4c6b24d0d82f2dcea0af Mon Sep 17 00:00:00 2001
+From: Caleb Maclennan <caleb@alerque.com>
+Date: Mon, 25 Nov 2024 12:27:25 +0300
+Subject: [PATCH] fix(build): Support cross-compilation of Rust binaries
+ (#2178)
+
+---
+ Makefile.am                       | 2 +-
+ build-aux/que_rust_boilerplate.am | 4 ++--
+ build-aux/que_rust_boilerplate.m4 | 8 ++++++--
+ 3 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index a5fc43102..bb44bdb5e 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -179,7 +179,7 @@ CARGO_FEATURE_ARGS += --features variations
+ endif
+ 
+ rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
+-	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
++	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
+ 	$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
+ 
+ DEPDIR := .deps
+diff --git a/build-aux/que_rust_boilerplate.am b/build-aux/que_rust_boilerplate.am
+index a1ba65af4..26de4ef58 100644
+--- a/build-aux/que_rust_boilerplate.am
++++ b/build-aux/que_rust_boilerplate.am
+@@ -57,8 +57,8 @@ $(COMPLETIONS_OUT_DIR)/_$(TRANSFORMED_PACKAGE_NAME): $(CARGO_BIN) | $(COMPLETION
+ $(_RUST_OUT) $(CARGO_BIN): $(@PACKAGE_VAR@_SOURCES) $(nodist_@PACKAGE_VAR@_SOURCES) $(EXTRA_@PACKAGE_VAR@_SOURCES)
+ 	set -e
+ 	export AUTOTOOLS_DEPENDENCIES="$^"
+-	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
+-	$(CARGO_ENV) $(CARGO) build --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
++	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
++	$(CARGO_ENV) $(CARGO) build  --target $(CARGO_TARGET_TRIPLE) --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
+ 		$(JQ) -sr 'map(select(.reason == "build-script-executed")) | last | .out_dir' > $(_RUST_OUT)
+ 
+ RUST_DEVELOPER_TARGETS = cargo-test clippy rustfmt
+diff --git a/build-aux/que_rust_boilerplate.m4 b/build-aux/que_rust_boilerplate.m4
+index 36fa0923d..bc3d5ffaf 100644
+--- a/build-aux/que_rust_boilerplate.m4
++++ b/build-aux/que_rust_boilerplate.m4
+@@ -22,13 +22,17 @@ AC_DEFUN_ONCE([QUE_RUST_BOILERPLATE], [
+                 QUE_PROGVAR([rustfmt])
+         ])
+ 
++        AC_ARG_VAR(CARGO_TARGET_TRIPLE, "Target triple for Rust compilations")
++        if test -z "$CARGO_TARGET_TRIPLE"; then
++                CARGO_TARGET_TRIPLE="$($RUSTC -vV | $SED -n 's/host: //p')"
++        fi
+         AC_MSG_CHECKING([whether to build Rust code with debugging information])
+         AM_COND_IF([DEBUG_RELEASE], [
+                 AC_MSG_RESULT(yes)
+-                RUST_TARGET_SUBDIR=debug
++                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/debug
+         ], [
+                 AC_MSG_RESULT(no)
+-                RUST_TARGET_SUBDIR=release
++                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/release
+         ])
+         AC_SUBST([RUST_TARGET_SUBDIR])
+ 
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index cfc036f276f2e0..dafe53537e1d68 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -5,7 +5,7 @@ revision=1
 build_style=gnu-configure
 build_helper=rust
 configure_args="--with-system-lua-sources --with-system-luarocks"
-hostmakedepends="jq poppler cargo rust pkg-config"
+hostmakedepends="jq poppler cargo rust pkg-config automake"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
  lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
  lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
@@ -30,17 +30,19 @@ post_install() {
 	vlicense LICENSE.md
 }
 
-post_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		# Fix path for sile
-		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
-		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
-
-		# Fix path for rusile
-		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
-		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib|target/*linux*/release/\$@|" Makefile.in
-	fi
-}
+#post_configure() {
+#	if [ "$CROSS_BUILD" ]; then
+#		# Fix path for sile
+#		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
+#		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
+#
+#		# Fix path for rusile
+#		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
+#		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib$@|target/*linux*/release/$@|" Makefile.in
+#
+#		vsed -i "1945s|rusile\.so|librusile.so|" Makefile.in
+#	fi
+#}
 
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"

From 73b6cb492ea410ea6278baf091b4dbd4e5e21fcd Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Tue, 26 Nov 2024 20:50:21 +0500
Subject: [PATCH 18/18] fixup sile cross 0.15.7

---
 srcpkgs/sile/patches/upstream-cross.patch | 64 -----------------------
 srcpkgs/sile/template                     | 25 ++++-----
 2 files changed, 9 insertions(+), 80 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/upstream-cross.patch

diff --git a/srcpkgs/sile/patches/upstream-cross.patch b/srcpkgs/sile/patches/upstream-cross.patch
deleted file mode 100644
index 939619b58cba48..00000000000000
--- a/srcpkgs/sile/patches/upstream-cross.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 19c7c1d4cf07ac7baa7c4c6b24d0d82f2dcea0af Mon Sep 17 00:00:00 2001
-From: Caleb Maclennan <caleb@alerque.com>
-Date: Mon, 25 Nov 2024 12:27:25 +0300
-Subject: [PATCH] fix(build): Support cross-compilation of Rust binaries
- (#2178)
-
----
- Makefile.am                       | 2 +-
- build-aux/que_rust_boilerplate.am | 4 ++--
- build-aux/que_rust_boilerplate.m4 | 8 ++++++--
- 3 files changed, 9 insertions(+), 5 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index a5fc43102..bb44bdb5e 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -179,7 +179,7 @@ CARGO_FEATURE_ARGS += --features variations
- endif
- 
- rusile.so: $(rusile_so_SOURCES) $(bin_PROGRAMS)
--	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
-+	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(RUSILE_FEATURE_ARG) $(CARGO_RELEASE_ARGS) -p rusile
- 	$(INSTALL) @builddir@/target/@RUST_TARGET_SUBDIR@/lib$@ $@
- 
- DEPDIR := .deps
-diff --git a/build-aux/que_rust_boilerplate.am b/build-aux/que_rust_boilerplate.am
-index a1ba65af4..26de4ef58 100644
---- a/build-aux/que_rust_boilerplate.am
-+++ b/build-aux/que_rust_boilerplate.am
-@@ -57,8 +57,8 @@ $(COMPLETIONS_OUT_DIR)/_$(TRANSFORMED_PACKAGE_NAME): $(CARGO_BIN) | $(COMPLETION
- $(_RUST_OUT) $(CARGO_BIN): $(@PACKAGE_VAR@_SOURCES) $(nodist_@PACKAGE_VAR@_SOURCES) $(EXTRA_@PACKAGE_VAR@_SOURCES)
- 	set -e
- 	export AUTOTOOLS_DEPENDENCIES="$^"
--	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
--	$(CARGO_ENV) $(CARGO) build --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
-+	$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
-+	$(CARGO_ENV) $(CARGO) build  --target $(CARGO_TARGET_TRIPLE) --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) | \
- 		$(JQ) -sr 'map(select(.reason == "build-script-executed")) | last | .out_dir' > $(_RUST_OUT)
- 
- RUST_DEVELOPER_TARGETS = cargo-test clippy rustfmt
-diff --git a/build-aux/que_rust_boilerplate.m4 b/build-aux/que_rust_boilerplate.m4
-index 36fa0923d..bc3d5ffaf 100644
---- a/build-aux/que_rust_boilerplate.m4
-+++ b/build-aux/que_rust_boilerplate.m4
-@@ -22,13 +22,17 @@ AC_DEFUN_ONCE([QUE_RUST_BOILERPLATE], [
-                 QUE_PROGVAR([rustfmt])
-         ])
- 
-+        AC_ARG_VAR(CARGO_TARGET_TRIPLE, "Target triple for Rust compilations")
-+        if test -z "$CARGO_TARGET_TRIPLE"; then
-+                CARGO_TARGET_TRIPLE="$($RUSTC -vV | $SED -n 's/host: //p')"
-+        fi
-         AC_MSG_CHECKING([whether to build Rust code with debugging information])
-         AM_COND_IF([DEBUG_RELEASE], [
-                 AC_MSG_RESULT(yes)
--                RUST_TARGET_SUBDIR=debug
-+                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/debug
-         ], [
-                 AC_MSG_RESULT(no)
--                RUST_TARGET_SUBDIR=release
-+                RUST_TARGET_SUBDIR=$CARGO_TARGET_TRIPLE/release
-         ])
-         AC_SUBST([RUST_TARGET_SUBDIR])
- 
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index dafe53537e1d68..b1a842d1365bc9 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,11 +1,11 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.6
+version=0.15.7
 revision=1
 build_style=gnu-configure
 build_helper=rust
 configure_args="--with-system-lua-sources --with-system-luarocks"
-hostmakedepends="jq poppler cargo rust pkg-config automake"
+hostmakedepends="jq poppler cargo rust pkg-config automake luarocks-lua51"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
  lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
  lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
@@ -20,7 +20,7 @@ maintainer="John <me@johnnynator.dev>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=0ad3efc5ba6adbfab0b8034fa7d5c32501e5c486c589a35926f619794c7fc321
+checksum=3e353a41f9fe1532f7bedeba9a42009ffb9758c3cf947f222ba076eb87a4222b
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
@@ -30,19 +30,12 @@ post_install() {
 	vlicense LICENSE.md
 }
 
-#post_configure() {
-#	if [ "$CROSS_BUILD" ]; then
-#		# Fix path for sile
-#		local line_no=$(grep "\$(INSTALL) \$< $@" Makefile.in --line-number | cut -d':' -f1)
-#		vsed -i "${line_no}s|$<|target/*linux*/release/\$@|" Makefile.in
-#
-#		# Fix path for rusile
-#		line_no=$(grep "\$(INSTALL) @builddir@.*$@" Makefile.in --line-number | cut -d':' -f1)
-#		vsed -i "${line_no}s|@builddir@/target/@RUST_TARGET_SUBDIR@/lib$@|target/*linux*/release/$@|" Makefile.in
-#
-#		vsed -i "1945s|rusile\.so|librusile.so|" Makefile.in
-#	fi
-#}
+pre_configure() {
+
+	if [ "$CROSS_BUILD" ]; then
+		export CARGO_TARGET_TRIPLE=${XBPS_CROSS_RUST_TARGET}
+	fi
+}
 
 libtexpdf_package() {
 	short_desc="PDF library extracted from TeX's dvipdfmx"

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.5
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (50 preceding siblings ...)
  2024-11-26 16:25 ` Luciogi
@ 2024-11-26 16:36 ` Luciogi
  2024-11-27  7:38 ` Sile update to 0.15.7 alerque
                   ` (4 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2024-11-26 16:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.5
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 38537 bytes --]

From fbee34343858a01d9a7fd676855978bf520afd2d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 01/14] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From 6169e646938e8f8f3bba697705edb1ddf619b777 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 03/14] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 426ea3c4241dedcb14253079c6e5cb16e18177ab Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 05/14] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 18b63117c2cb03ff50720ad2a7667f0f2f48ac28 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 06/14] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From bdf599ffed4be1775f44173313dd689e3485a129 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 07/14] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From a4c32a86c3540c81fe2cdb9187812a0287a15617 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 08/14] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From d8df7c3f9dbc3800372d2466f0eaf17e6b66a30b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 09/14] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From b4ac0ee9ecf9bec93874aa1cdb27dd9510896384 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 10/14] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 81ae3dc5fa33bc6711ec074aa4b290bea03cd4a1 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 11/14] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 56345352bba3fadc88e52221d322330363799780 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 12/14] sile: update to 0.15.7.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 36 ++++++++++++++++++++++------------
 2 files changed, 24 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..80f1209f48348a 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.7
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config automake luarocks-lua51"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="John <me@johnnynator.dev>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=3e353a41f9fe1532f7bedeba9a42009ffb9758c3cf947f222ba076eb87a4222b
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+pre_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		export CARGO_TARGET_TRIPLE=${XBPS_CROSS_RUST_TARGET}
+	fi
 }
 
 libtexpdf_package() {

From 2524cb3e6e86e6f13e722114b3c5b1d5c8f966fd Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 13/14] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From ce383f5180ad73dec9649915fc0f482a8ecfa391 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 14/14] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

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

* Re: Sile update to 0.15.7
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (51 preceding siblings ...)
  2024-11-26 16:36 ` Luciogi
@ 2024-11-27  7:38 ` alerque
  2025-01-02  0:58 ` [PR PATCH] [Updated] " Johnnynator
                   ` (3 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: alerque @ 2024-11-27  7:38 UTC (permalink / raw)
  To: ml

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

New comment by alerque on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2503124255

Comment:
Hey @Johnnynator sorry for the intrusion but would you by any chance be able to review this? I've seen you bump the sile package on Void before but it has since fallen *very* out of date including a number of dependency changes over the years.

This PR has been a long time in the works but it seems (to me on the outside) to have been working properly across several upstream release cycles now. If there is something amiss that is blocking this moving on I'm sure both the OP and I would be happy to step in and address it.

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

* Re: [PR PATCH] [Updated] Sile update to 0.15.7
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (52 preceding siblings ...)
  2024-11-27  7:38 ` Sile update to 0.15.7 alerque
@ 2025-01-02  0:58 ` Johnnynator
  2025-01-02  0:58 ` Johnnynator
                   ` (2 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Johnnynator @ 2025-01-02  0:58 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Luciogi/void-packages sile
https://github.com/void-linux/void-packages/pull/51222

Sile update to 0.15.7
#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sile-51222.patch --]
[-- Type: text/x-diff, Size: 40477 bytes --]

From 77a7b688c832c5f8ad22fa05439a07fad7508b3a Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Thu, 2 Jan 2025 01:47:18 +0100
Subject: [PATCH 01/16] sile: orphan

---
 srcpkgs/sile/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 097fccd2b39eaa..dd0be2a453f487 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -9,7 +9,7 @@ makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
 depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
  lua51-luasocket lua51-luasec"
 short_desc="Modern typesetting system inspired by TeX"
-maintainer="John <me@johnnynator.dev>"
+maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://www.sile-typesetter.org/"
 distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"

From eafb54ad2bcc94290c1b0da2cdb6088677e69b3b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 17:57:43 +0500
Subject: [PATCH 02/16] New package: lua54-vstruct-2.2.0

---
 srcpkgs/lua51-vstruct          |  1 +
 srcpkgs/lua52-vstruct          |  1 +
 srcpkgs/lua53-vstruct          |  1 +
 srcpkgs/lua54-vstruct/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-vstruct
 create mode 120000 srcpkgs/lua52-vstruct
 create mode 120000 srcpkgs/lua53-vstruct
 create mode 100644 srcpkgs/lua54-vstruct/template

diff --git a/srcpkgs/lua51-vstruct b/srcpkgs/lua51-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua51-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua52-vstruct b/srcpkgs/lua52-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua52-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua53-vstruct b/srcpkgs/lua53-vstruct
new file mode 120000
index 00000000000000..f8ca1222a0040e
--- /dev/null
+++ b/srcpkgs/lua53-vstruct
@@ -0,0 +1 @@
+lua54-vstruct
\ No newline at end of file
diff --git a/srcpkgs/lua54-vstruct/template b/srcpkgs/lua54-vstruct/template
new file mode 100644
index 00000000000000..a1dae28be2faa9
--- /dev/null
+++ b/srcpkgs/lua54-vstruct/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-vstruct'
+pkgname=lua54-vstruct
+version=2.2.0
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="Lua library to manipulate binary data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/ToxicFrog/vstruct"
+distfiles="https://github.com/ToxicFrog/vstruct/archive/refs/tags/v${version}.tar.gz"
+checksum=54ade004665b62b2253d403f3e468631caa486a45a2b873818e55097e7b679bf
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-vstruct_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-vstruct_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-vstruct_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

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

---
 srcpkgs/lua51-penlight          |  1 +
 srcpkgs/lua52-penlight          |  1 +
 srcpkgs/lua53-penlight          |  1 +
 srcpkgs/lua54-penlight/template | 52 +++++++++++++++++++++++++++++++++
 4 files changed, 55 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..da546fa9a69b7c
--- /dev/null
+++ b/srcpkgs/lua54-penlight/template
@@ -0,0 +1,52 @@
+# 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"
+short_desc="Lua libraries focusing on input data handling"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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="lua51 lua51-luafilesystem"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE.md
+	}
+}
+
+lua52-penlight_package() {
+	build_style=meta
+	depends="lua52 lua52-luafilesystem"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE.md
+	}
+}
+
+lua53-penlight_package() {
+	build_style=meta
+	depends="lua53 lua53-luafilesystem"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE.md
+	}
+}

From ab0dbf2a9de7a115851702af14e178274fb1333d Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:01 +0500
Subject: [PATCH 04/16] New package: lua54-cldr-0.3.0

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

diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua51-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua52-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr
new file mode 120000
index 00000000000000..fe359b22385124
--- /dev/null
+++ b/srcpkgs/lua53-cldr
@@ -0,0 +1 @@
+lua54-cldr
\ No newline at end of file
diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template
new file mode 100644
index 00000000000000..13a98bd47f62cf
--- /dev/null
+++ b/srcpkgs/lua54-cldr/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-cldr'
+pkgname=lua54-cldr
+version=0.3.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54-penlight"
+short_desc="Lua interface to Unicode CLDR data"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/cldr-lua"
+distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-cldr_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-cldr_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-cldr_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+	}
+}

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

---
 srcpkgs/lua51-cliargs          |  1 +
 srcpkgs/lua52-cliargs          |  1 +
 srcpkgs/lua53-cliargs          |  1 +
 srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 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..d5c193d8dd5e0c
--- /dev/null
+++ b/srcpkgs/lua54-cliargs/template
@@ -0,0 +1,49 @@
+# 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"
+short_desc="Command-line argument parser for Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.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"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-cliargs_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-cliargs_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 911378d2c91bc360d0c1f5bde2e52e888d21ae4f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:16 +0500
Subject: [PATCH 06/16] New package: lua54-fluent-0.2.0

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

diff --git a/srcpkgs/lua51-fluent b/srcpkgs/lua51-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua51-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua52-fluent b/srcpkgs/lua52-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua52-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua53-fluent b/srcpkgs/lua53-fluent
new file mode 120000
index 00000000000000..570da71eee83fc
--- /dev/null
+++ b/srcpkgs/lua53-fluent
@@ -0,0 +1 @@
+lua54-fluent
\ No newline at end of file
diff --git a/srcpkgs/lua54-fluent/template b/srcpkgs/lua54-fluent/template
new file mode 100644
index 00000000000000..44222e72c85b78
--- /dev/null
+++ b/srcpkgs/lua54-fluent/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-fluent'
+pkgname=lua54-fluent
+version=0.2.0
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-cldr lua54-luaepnf lua54-penlight"
+short_desc="Lua implementation of Project Fluent"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/alerque/fluent-lua"
+distfiles="https://github.com/alerque/fluent-lua/archive/refs/tags/v${version}.tar.gz"
+checksum=2458b80c8dad59c86de459bb7b4deef285d196b54ab449e73a8b8814f9822633
+
+_rockname=${pkgname#lua54-}
+_rocksrel=0
+_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-fluent_package() {
+	build_style=meta
+	depends="lua53 lua53-cldr lua53-luaepnf lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-fluent_package() {
+	build_style=meta
+	depends="lua52 lua52-cldr lua52-luaepnf lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-fluent_package() {
+	build_style=meta
+	depends="lua51 lua51-cldr lua51-luaepnf lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 03659e5f4c44fd159cca6064167fbc13bbdaec28 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:22 +0500
Subject: [PATCH 07/16] New package: lua54-linenoise-0.9

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

diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua51-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua52-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise
new file mode 120000
index 00000000000000..f544b8348c8f3c
--- /dev/null
+++ b/srcpkgs/lua53-linenoise
@@ -0,0 +1 @@
+lua54-linenoise
\ No newline at end of file
diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template
new file mode 100644
index 00000000000000..8505d1c3334ec5
--- /dev/null
+++ b/srcpkgs/lua54-linenoise/template
@@ -0,0 +1,49 @@
+# Template file for 'lua54-linenoise'
+pkgname=lua54-linenoise
+version=0.9
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
+depends="lua54"
+short_desc="Bindings for the linenoise command line library"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-linenoise"
+distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz"
+checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense COPYING
+}
+
+lua53-linenoise_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-linenoise_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-linenoise_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 8bc0091588b3d1162e19594ce2410d7b83cbf9f6 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:42 +0500
Subject: [PATCH 08/16] New package: lua54-luautf8-0.1.5

---
 srcpkgs/lua51-luautf8          |  1 +
 srcpkgs/lua52-luautf8          |  1 +
 srcpkgs/lua53-luautf8          |  1 +
 srcpkgs/lua54-luautf8/template | 55 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/lua51-luautf8
 create mode 120000 srcpkgs/lua52-luautf8
 create mode 120000 srcpkgs/lua53-luautf8
 create mode 100644 srcpkgs/lua54-luautf8/template

diff --git a/srcpkgs/lua51-luautf8 b/srcpkgs/lua51-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua51-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua52-luautf8 b/srcpkgs/lua52-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua52-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua53-luautf8 b/srcpkgs/lua53-luautf8
new file mode 120000
index 00000000000000..7a9bdbecf1c337
--- /dev/null
+++ b/srcpkgs/lua53-luautf8
@@ -0,0 +1 @@
+lua54-luautf8
\ No newline at end of file
diff --git a/srcpkgs/lua54-luautf8/template b/srcpkgs/lua54-luautf8/template
new file mode 100644
index 00000000000000..909d6b9e57f106
--- /dev/null
+++ b/srcpkgs/lua54-luautf8/template
@@ -0,0 +1,55 @@
+# Template file for 'lua54-luautf8'
+pkgname=lua54-luautf8
+version=0.1.5
+revision=1
+build_style=meta
+hostmakedepends="luarocks-lua54"
+depends="lua54"
+short_desc="UTF-8 support module for Lua and LuaJIT"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/starwing/luautf8"
+distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
+checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+	hostmakedepends+=" ${_lua_version/./}"
+	makedepends+=" ${_lua_version/./}-devel"
+done
+
+_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
+}
+
+lua53-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luautf8_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luautf8_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From 0ea19622493f5d316ccb8c6aa8067641b20ae3b5 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:48 +0500
Subject: [PATCH 09/16] New package: lua54-luarepl-0.10

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

diff --git a/srcpkgs/lua51-luarepl b/srcpkgs/lua51-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua51-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua52-luarepl b/srcpkgs/lua52-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua52-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua53-luarepl b/srcpkgs/lua53-luarepl
new file mode 120000
index 00000000000000..1cd861228a7386
--- /dev/null
+++ b/srcpkgs/lua53-luarepl
@@ -0,0 +1 @@
+lua54-luarepl
\ No newline at end of file
diff --git a/srcpkgs/lua54-luarepl/template b/srcpkgs/lua54-luarepl/template
new file mode 100644
index 00000000000000..643516e90e62e6
--- /dev/null
+++ b/srcpkgs/lua54-luarepl/template
@@ -0,0 +1,53 @@
+# Template file for 'lua54-luarepl'
+pkgname=lua54-luarepl
+version=0.10
+revision=1
+build_style=meta
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Reusable REPL component for Lua, written in Lua"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/hoelzro/lua-repl"
+distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
+checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
+
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
+		echo /destdir/${pkgname}-${version}
+		sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
+		mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
+}
+
+do_install() {
+	_package 5.4
+	sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
+	vlicense COPYING
+}
+
+lua53-luarepl_package() {
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+		vlicense COPYING
+	}
+}
+
+lua52-luarepl_package() {
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+		vlicense COPYING
+	}
+}
+
+lua51-luarepl_package() {
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+		vlicense COPYING
+	}
+}

From 6d9adaef39ced2ab9cbab428ef12672112b18f7f Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:01:59 +0500
Subject: [PATCH 10/16] New package: lua54-luaepnf-0.3

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

diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua51-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua52-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf
new file mode 120000
index 00000000000000..9d47c064ba08e3
--- /dev/null
+++ b/srcpkgs/lua53-luaepnf
@@ -0,0 +1 @@
+lua54-luaepnf
\ No newline at end of file
diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template
new file mode 100644
index 00000000000000..06e2041723666d
--- /dev/null
+++ b/srcpkgs/lua54-luaepnf/template
@@ -0,0 +1,51 @@
+# Template file for 'lua54-luaepnf'
+pkgname=lua54-luaepnf
+version=0.3
+revision=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54 lua54-lpeg"
+short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/siffiejoe/lua-luaepnf"
+distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
+checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
+
+_rockname=${pkgname#lua54-}
+_rocksrel=scm-0
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
+}
+
+do_install() {
+	_package 5.4
+	sed -n '14,38p' README.md > LICENSE
+	vlicense LICENSE
+}
+lua53-luaepnf_package() {
+	build_style=meta
+	depends="lua53 lua53-lpeg"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}
+
+lua52-luaepnf_package() {
+	build_style=meta
+	depends="lua52 lua52-lpeg"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua51-luaepnf_package() {
+	build_style=meta
+	depends="lua51 lua51-lpeg"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}

From a2a453b76c426cfb75feff5535b5e2e2b04d23ee Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:05 +0500
Subject: [PATCH 11/16] New package: lua54-loadkit-1.1.0

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

diff --git a/srcpkgs/lua51-loadkit b/srcpkgs/lua51-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua51-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua52-loadkit b/srcpkgs/lua52-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua52-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua53-loadkit b/srcpkgs/lua53-loadkit
new file mode 120000
index 00000000000000..ff455965f93f6c
--- /dev/null
+++ b/srcpkgs/lua53-loadkit
@@ -0,0 +1 @@
+lua54-loadkit
\ No newline at end of file
diff --git a/srcpkgs/lua54-loadkit/template b/srcpkgs/lua54-loadkit/template
new file mode 100644
index 00000000000000..64ee905bcdd297
--- /dev/null
+++ b/srcpkgs/lua54-loadkit/template
@@ -0,0 +1,58 @@
+# Template file for 'lua54-loadkit'
+pkgname=lua54-loadkit
+version=1.1.0
+revision=1
+_rockname=${pkgname#lua54-}
+_rocksrel=1
+hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
+depends="lua54"
+short_desc="Allows you to load arbitrary files within the Lua package path"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/leafo/loadkit"
+_rockspec=$_rockname-${version}-$_rocksrel.rockspec
+distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
+ https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
+ https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
+checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
+ 5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
+ 33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
+skip_extraction="$_rockspec LICENSE"
+
+post_extract() {
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
+}
+
+_package() {
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "$_rockspec"
+}
+
+do_install() {
+	_package 5.4
+	vlicense LICENSE
+}
+
+lua53-loadkit_package() {
+	build_style=meta
+	depends="lua53"
+	pkg_install() {
+		_package 5.3
+	}
+}
+
+lua52-loadkit_package() {
+	build_style=meta
+	depends="lua52"
+	pkg_install() {
+		_package 5.2
+	}
+}
+
+lua51-loadkit_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From ff0e8fc811206dc6530b1fa88f3d007be36b4226 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:20 +0500
Subject: [PATCH 12/16] New package: lua52-compat53-0.13

---
 srcpkgs/lua51-compat53          |  1 +
 srcpkgs/lua52-compat53/template | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/lua51-compat53
 create mode 100644 srcpkgs/lua52-compat53/template

diff --git a/srcpkgs/lua51-compat53 b/srcpkgs/lua51-compat53
new file mode 120000
index 00000000000000..96fb1cb4da1a6b
--- /dev/null
+++ b/srcpkgs/lua51-compat53
@@ -0,0 +1 @@
+lua52-compat53
\ No newline at end of file
diff --git a/srcpkgs/lua52-compat53/template b/srcpkgs/lua52-compat53/template
new file mode 100644
index 00000000000000..9c9386654384de
--- /dev/null
+++ b/srcpkgs/lua52-compat53/template
@@ -0,0 +1,33 @@
+# Template file for 'lua52-compat53'
+pkgname=lua52-compat53
+version=0.13
+revision=1
+hostmakedepends="lua52 lua51 luarocks-lua52"
+makedepends="lua52-devel lua51-devel"
+depends="lua52"
+short_desc="Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/lunarmodules/lua-compat5.3"
+distfiles="https://github.com/lunarmodules/lua-compat-5.3/archive/refs/tags/v${version}.tar.gz"
+checksum=f5dc30e7b1fda856ee4d392be457642c1f0c259264a9b9bfbcb680302ce88fc2
+
+_rockname=${pkgname#lua52-}
+_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.2
+	vlicense LICENSE
+}
+
+lua51-compat53_package() {
+	build_style=meta
+	depends="lua51"
+	pkg_install() {
+		_package 5.1
+	}
+}

From 82646bd7f635cd3f80d2200cf6c369207b284ce8 Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:02:29 +0500
Subject: [PATCH 13/16] sile: update to 0.15.7.

---
 srcpkgs/sile/patches/lua.patch |  8 --------
 srcpkgs/sile/template          | 36 ++++++++++++++++++++++------------
 2 files changed, 24 insertions(+), 20 deletions(-)
 delete mode 100644 srcpkgs/sile/patches/lua.patch

diff --git a/srcpkgs/sile/patches/lua.patch b/srcpkgs/sile/patches/lua.patch
deleted file mode 100644
index 12ddc52ddbaaea..00000000000000
--- a/srcpkgs/sile/patches/lua.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/sile.in	2019-01-07 09:48:08.943943000 +0100
-+++ b/sile.in	2019-01-07 09:48:08.943943000 +0100
-@@ -1,4 +1,4 @@
--#!@LUA@
-+#!@LUA@@LUA_VERSION@
- SYSTEM_SILE_PATH = "@SILE_PATH@"
- SYSTEM_SILE_LIB_PATH = "@SILE_LIB_PATH@"
- SHARED_LIB_EXT = "@SHARED_LIB_EXT@"
diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index dd0be2a453f487..3e1b6ed49c1f83 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,27 +1,39 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.9.5.1
-revision=9
+version=0.15.7
+revision=1
 build_style=gnu-configure
-hostmakedepends="pkg-config"
+build_helper=rust
+configure_args="--with-system-lua-sources --with-system-luarocks"
+hostmakedepends="jq poppler cargo rust pkg-config automake luarocks-lua51"
 makedepends="harfbuzz-devel lua51-devel lua51-lpeg lua51-luaexpat
- lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec"
-depends="lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem
- lua51-luasocket lua51-luasec"
+ lua51-zlib lua51-luafilesystem lua51-luasocket lua51-luasec lua51-cassowary
+ lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit lua51-linenoise
+ lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct fontconfig-devel LuaJIT-devel font-sil-gentium rust-std"
+depends="LuaJIT lua51-lpeg lua51-luaexpat lua51-zlib lua51-luafilesystem lua51-cassowary
+ lua51-luasocket lua51-luasec lua51-compat53 lua51-cldr lua51-fluent lua51-loadkit
+ lua51-linenoise lua51-cliargs lua51-luarepl lua51-luasocket lua51-luasec lua51-luautf8
+ lua51-vstruct font-sil-gentium"
 short_desc="Modern typesetting system inspired by TeX"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
-homepage="http://www.sile-typesetter.org/"
-distfiles="https://github.com/simoncozens/sile/releases/download/v${version}/sile-${version}.tar.bz2"
-checksum=60cdcc4509971973feab352dfc1a86217cc1fdb12d56823f04d863afef92003a
+homepage="https://www.sile-typesetter.org/"
+distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
+checksum=3e353a41f9fe1532f7bedeba9a42009ffb9758c3cf947f222ba076eb87a4222b
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" lua51 lua51-devel lua51-lpeg luaexpat lua51-zlib luafilesystem
-	 luasocket lua51-luasec"
+	hostmakedepends+=" ${makedepends}"
 fi
 
 post_install() {
-	vlicense LICENSE
+	vlicense LICENSE.md
+}
+
+pre_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		export CARGO_TARGET_TRIPLE=${XBPS_CROSS_RUST_TARGET}
+	fi
 }
 
 libtexpdf_package() {

From 6f2c987bbd5f1375def6bb400729a9c998ef52bd Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:06 +0500
Subject: [PATCH 14/16] New package: lua54-cassowary-2.3.2

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

diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua51-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua52-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary
new file mode 120000
index 00000000000000..b1ab1c3518ed21
--- /dev/null
+++ b/srcpkgs/lua53-cassowary
@@ -0,0 +1 @@
+lua54-cassowary
\ No newline at end of file
diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template
new file mode 100644
index 00000000000000..3fb78474ef13f4
--- /dev/null
+++ b/srcpkgs/lua54-cassowary/template
@@ -0,0 +1,52 @@
+# Template file for 'lua54-cassowary'
+pkgname=lua54-cassowary
+version=2.3.2
+revision=1
+hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54"
+makedepends="lua54-devel lua53-devel lua52-devel lua51-devel"
+depends="lua54 lua54-penlight"
+short_desc="Cassowary constraint solver"
+maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
+license="MIT"
+homepage="https://github.com/sile-typesetter/lua-cassowary"
+distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz"
+checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798
+
+_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
+}
+
+lua51-cassowary_package() {
+	build_style=meta
+	depends="lua51 lua51-penlight"
+	pkg_install() {
+		_package 5.1
+		vlicense LICENSE
+	}
+}
+
+lua52-cassowary_package() {
+	build_style=meta
+	depends="lua52 lua52-penlight"
+	pkg_install() {
+		_package 5.2
+		vlicense LICENSE
+	}
+}
+
+lua53-cassowary_package() {
+	build_style=meta
+	depends="lua53 lua53-penlight"
+	pkg_install() {
+		_package 5.3
+		vlicense LICENSE
+	}
+}

From 55aa31fdedcdd84caa592f730a81468deb6f386b Mon Sep 17 00:00:00 2001
From: Luciogi <githubvoidlinux.supremacy429@passinbox.com>
Date: Fri, 12 Jul 2024 18:04:13 +0500
Subject: [PATCH 15/16] lua51-luasocket: rebuild with luarocks.

---
 srcpkgs/lua51-luasocket/template | 67 +++++++++++---------------------
 1 file changed, 22 insertions(+), 45 deletions(-)

diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 69ad4cc7cdebb6..d62a998ae34121 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,8 +1,9 @@
 # Template file for 'lua51-luasocket'
 pkgname=lua51-luasocket
 version=3.1.0
-revision=2
-build_style=gnu-makefile
+revision=3
+build_style=meta
+hostmakedepends="luarocks-lua54"
 depends="lua51"
 _desc="Network support for the Lua language"
 short_desc="${_desc} (5.1.x)"
@@ -18,47 +19,23 @@ for _lua_version in $_lua_versions; do
 	makedepends+=" ${_lua_version/./}-devel"
 done
 
-post_extract() {
-	mkdir -p lua51
-	mv * lua51 || true
-	cp -a lua51 lua52
-	cp -a lua51 lua53
-	cp -a lua51 lua54
-}
+#if [[ CROSS_BUILD ]]; then
+#	for _lua_version in $_lua_versions; do
+#		hostmakedepends+=" ${_lua_version/./}-devel"
+#	done
+#fi
 
-do_build() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			LD="$CC" \
-			CC="$CC" \
-			LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			PLAT=linux \
-			${makejobs} \
-			all-unix
-	done
+_rockname=${pkgname#lua51-}
+_rocksrel=1
+_package() {
+	luarocks config --lua-version="$1" variables.LUA_INCDIR "${XBPS_CROSS_BASE}/usr/include/lua$1"
+	luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec"
 }
 
 do_install() {
-	for _lua_version in $_lua_versions; do
-		cd "${wrksrc}/${_lua_version/./}/src/"
-		make \
-			STRIP=true \
-			PREFIX=/usr \
-			prefix=/usr \
-			DESTDIR="${DESTDIR}" \
-			LUAVER="${_lua_version#lua}" \
-			LUAV="${_lua_version#lua}" \
-			LDIR_linux="lib/lua/${_lua_version#lua}" \
-			PLAT=linux \
-			install
-	done
-}
-
-post_install() {
-	vlicense ./lua51/LICENSE
+	_package 5.1
+	vlicense LICENSE
 }
 
 luasocket_package() {
@@ -71,8 +48,8 @@ lua52-luasocket_package() {
 	depends="lua52"
 	short_desc="${_desc} (5.2.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.2
-		vlicense ${wrksrc}/lua52/LICENSE
+		_package 5.2
+		vlicense LICENSE
 	}
 }
 
@@ -80,8 +57,8 @@ lua53-luasocket_package() {
 	depends="lua53"
 	short_desc="${_desc} (5.3.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.3
-		vlicense ${wrksrc}/lua53/LICENSE
+		_package 5.3
+		vlicense LICENSE
 	}
 }
 
@@ -89,7 +66,7 @@ lua54-luasocket_package() {
 	depends="lua54"
 	short_desc="${_desc} (5.4.x)"
 	pkg_install() {
-		vmove usr/lib/lua/5.4
-		vlicense ${wrksrc}/lua54/LICENSE
+		_package 5.4
+		vlicense LICENSE
 	}
 }

From 9c3d6bf3e30c98d236932c2656b7139945ba1c64 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Thu, 2 Jan 2025 01:52:15 +0100
Subject: [PATCH 16/16] sile: update to 0.15.8.

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

diff --git a/srcpkgs/sile/template b/srcpkgs/sile/template
index 3e1b6ed49c1f83..be024d6357ceba 100644
--- a/srcpkgs/sile/template
+++ b/srcpkgs/sile/template
@@ -1,6 +1,6 @@
 # Template file for 'sile'
 pkgname=sile
-version=0.15.7
+version=0.15.8
 revision=1
 build_style=gnu-configure
 build_helper=rust
@@ -20,7 +20,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://www.sile-typesetter.org/"
 distfiles="https://github.com/sile-typesetter/sile/releases/download/v${version}/sile-${version}.tar.zst"
-checksum=3e353a41f9fe1532f7bedeba9a42009ffb9758c3cf947f222ba076eb87a4222b
+checksum=64c17abafd5b1ef30419a81b000998870c1b081b6372d55bc31df9c3b83f0f6a
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"

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

* Re: Sile update to 0.15.7
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (53 preceding siblings ...)
  2025-01-02  0:58 ` [PR PATCH] [Updated] " Johnnynator
@ 2025-01-02  0:58 ` Johnnynator
  2025-01-02  0:58 ` [PR PATCH] [Merged]: " Johnnynator
  2025-01-02  8:32 ` Luciogi
  56 siblings, 0 replies; 58+ messages in thread
From: Johnnynator @ 2025-01-02  0:58 UTC (permalink / raw)
  To: ml

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

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2567205845

Comment:
@Luciogi thx for taking care of this package

@alerque Sry that I did not update the package over the years, I have kinda not used sile since I packaged it 6 years ago, I suppose it changed quite a bit since then. Maybe I will have a reason to look at it again in the future.

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

* Re: [PR PATCH] [Merged]: Sile update to 0.15.7
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (54 preceding siblings ...)
  2025-01-02  0:58 ` Johnnynator
@ 2025-01-02  0:58 ` Johnnynator
  2025-01-02  8:32 ` Luciogi
  56 siblings, 0 replies; 58+ messages in thread
From: Johnnynator @ 2025-01-02  0:58 UTC (permalink / raw)
  To: ml

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

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

Sile update to 0.15.7
https://github.com/void-linux/void-packages/pull/51222

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


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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


## Note:
- `lua54-toolkit` fetches license file, as author has not created new tag


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

* Re: Sile update to 0.15.7
  2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
                   ` (55 preceding siblings ...)
  2025-01-02  0:58 ` [PR PATCH] [Merged]: " Johnnynator
@ 2025-01-02  8:32 ` Luciogi
  56 siblings, 0 replies; 58+ messages in thread
From: Luciogi @ 2025-01-02  8:32 UTC (permalink / raw)
  To: ml

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

New comment by Luciogi on void-packages repository

https://github.com/void-linux/void-packages/pull/51222#issuecomment-2567424292

Comment:
> @Luciogi thx for taking care of this package
> 
> @alerque Sry that I did not update the package over the years, I have kinda not used sile since I packaged it 6 years ago, I suppose it changed quite a bit since then. Maybe I will have a reason to look at it again in the future.

Thanks to you from looking to this PR

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

end of thread, other threads:[~2025-01-02  8:32 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-12 13:06 [PR PATCH] Sile update to 0.15.4 Luciogi
2024-07-12 14:33 ` [PR PATCH] [Updated] " Luciogi
2024-07-12 15:40 ` Luciogi
2024-07-12 17:33 ` Luciogi
2024-07-13  6:01 ` Luciogi
2024-07-13  6:17 ` Luciogi
2024-07-13  8:03 ` Luciogi
2024-07-13  8:34 ` Luciogi
2024-07-13  8:34 ` Luciogi
2024-07-13  9:36 ` Luciogi
2024-07-13  9:39 ` Luciogi
2024-07-13  9:41 ` Luciogi
2024-07-13 10:20 ` [PR PATCH] [Updated] " Luciogi
2024-07-13 10:20 ` Luciogi
2024-07-13 10:20 ` Luciogi
2024-07-13 15:09 ` [PR PATCH] [Updated] " Luciogi
2024-07-13 15:10 ` Luciogi
2024-07-13 15:47 ` [PR PATCH] [Updated] " Luciogi
2024-08-30 11:54 ` Luciogi
2024-08-30 11:55 ` Luciogi
2024-08-30 14:07 ` Luciogi
2024-08-30 15:13 ` Luciogi
2024-08-30 20:51 ` [PR REVIEW] " alerque
2024-08-30 20:52 ` alerque
2024-08-31  7:03 ` [PR REVIEW] " Luciogi
2024-08-31  7:05 ` Luciogi
2024-08-31  8:54 ` alerque
2024-08-31  8:58 ` alerque
2024-09-04 17:41 ` [PR PATCH] [Updated] Sile update to 0.15.5 Luciogi
2024-09-04 17:42 ` [PR REVIEW] " Luciogi
2024-09-05  9:48 ` alerque
2024-09-05  9:54 ` alerque
2024-09-05  9:54 ` alerque
2024-09-05 16:37 ` [PR PATCH] [Updated] " Luciogi
2024-09-05 16:38 ` [PR REVIEW] " Luciogi
2024-11-25  9:48 ` [PR PATCH] [Updated] " Luciogi
2024-11-25 17:05 ` Luciogi
2024-11-25 20:18 ` [PR REVIEW] " alerque
2024-11-25 20:21 ` alerque
2024-11-25 20:26 ` [PR REVIEW] " alerque
2024-11-25 20:27 ` alerque
2024-11-26  8:51 ` [PR PATCH] [Updated] " Luciogi
2024-11-26  8:59 ` Luciogi
2024-11-26  9:16 ` alerque
2024-11-26  9:18 ` Luciogi
2024-11-26  9:20 ` Luciogi
2024-11-26  9:28 ` [PR REVIEW] " Luciogi
2024-11-26 10:00 ` alerque
2024-11-26 10:40 ` alerque
2024-11-26 14:18 ` alerque
2024-11-26 15:50 ` [PR PATCH] [Updated] " Luciogi
2024-11-26 16:25 ` Luciogi
2024-11-26 16:36 ` Luciogi
2024-11-27  7:38 ` Sile update to 0.15.7 alerque
2025-01-02  0:58 ` [PR PATCH] [Updated] " Johnnynator
2025-01-02  0:58 ` Johnnynator
2025-01-02  0:58 ` [PR PATCH] [Merged]: " Johnnynator
2025-01-02  8:32 ` Luciogi

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).