From ba513927264c7ec86d3fa0c31d956d33c9acbc30 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 3 Nov 2024 17:50:47 +0100 Subject: Add missing submodules to cpml --- lua-cpml/.SRCINFO | 2 +- lua-cpml/PKGBUILD | 7 ++++--- lua-cpml/modules.diff | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 lua-cpml/modules.diff diff --git a/lua-cpml/.SRCINFO b/lua-cpml/.SRCINFO index 8cc9efe..0fc891c 100644 --- a/lua-cpml/.SRCINFO +++ b/lua-cpml/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = lua-cpml pkgdesc = Cirno's Perfect Math Library pkgver = 1.0.0.r64.geb209f6 - pkgrel = 1 + pkgrel = 2 url = https://github.com/excessive/cpml arch = any license = BSD diff --git a/lua-cpml/PKGBUILD b/lua-cpml/PKGBUILD index e79738f..bab0e20 100644 --- a/lua-cpml/PKGBUILD +++ b/lua-cpml/PKGBUILD @@ -2,14 +2,14 @@ pkgname=lua-cpml pkgver=1.0.0.r64.geb209f6 -pkgrel=1 +pkgrel=2 pkgdesc="Cirno's Perfect Math Library" arch=('any') url='https://github.com/excessive/cpml' license=('BSD' 'MIT' 'CC0') makedepends=('luarocks') -source=("git+https://github.com/excessive/cpml.git" 'lua_version.diff') -sha256sums=('SKIP' 'SKIP') +source=("git+https://github.com/excessive/cpml.git" 'lua_version.diff' 'modules.diff') +sha256sums=('SKIP' 'SKIP' 'SKIP') pkgver() { @@ -21,6 +21,7 @@ pkgver() { prepare() { cd cpml patch --forward --strip=1 --input="$srcdir/lua_version.diff" + patch --forward --strip=1 --input="$srcdir/modules.diff" } diff --git a/lua-cpml/modules.diff b/lua-cpml/modules.diff new file mode 100644 index 0000000..31b3541 --- /dev/null +++ b/lua-cpml/modules.diff @@ -0,0 +1,15 @@ +diff '--color=auto' -aru cpml.orig/cpml-scm-1.rockspec cpml.new/cpml-scm-1.rockspec +--- cpml.orig/cpml-scm-1.rockspec 2024-11-03 17:42:20.490108708 +0100 ++++ cpml.new/cpml-scm-1.rockspec 2024-11-03 17:46:39.043443287 +0100 +@@ -16,6 +16,11 @@ + type = "builtin", + modules = { + ["cpml"] = "init.lua", ++ ["cpml.modules._private_precond"] = "modules/_private_precond.lua", ++ ["cpml.modules._private_utils"] = "modules/_private_utils.lua", ++ ["cpml.modules.bound2"] = "modules/bound2.lua", ++ ["cpml.modules.bound3"] = "modules/bound3.lua", ++ ["cpml.modules.bvh"] = "modules/bvh.lua", + ["cpml.modules.color"] = "modules/color.lua", + ["cpml.modules.constants"] = "modules/constants.lua", + ["cpml.modules.intersect"] = "modules/intersect.lua", -- cgit v1.1