Luarocks port

This commit is contained in:
Dorian Davi 2024-10-29 23:02:38 +00:00 committed by Jeremy Soller
parent 7fda465a35
commit 223ba2b908
3 changed files with 19 additions and 9 deletions

View File

@ -11,7 +11,5 @@ rsync -av --delete "${COOKBOOK_SOURCE}/" ./
CC="${TARGET}-gcc -std=gnu99" \
RANLIB="${TARGET}-ranlib" \
SYSLDFLAGS="-static" \
generic
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp src/lua src/luac "${COOKBOOK_STAGE}/bin"
install INSTALL_TOP="${COOKBOOK_STAGE}"
"""

View File

@ -0,0 +1,18 @@
[source]
git = "https://github.com/luarocks/luarocks.git"
[build]
template = "custom"
dependencies = [
"lua54"
]
script = """
COOKBOOK_CONFIGURE_FLAGS=(
--sysconfdir=$COOKBOOK_SYSROOT
--with-lua-include=$COOKBOOK_SYSROOT/include
--with-lua-bin=$COOKBOOK_SYSROOT/bin
--with-lua-lib=$COOKBOOK_SYSROOT/lib
)
cd "${COOKBOOK_SOURCE}"
cookbook_configure
"""

View File

@ -1,6 +0,0 @@
#TODO not compiled or tested
# build instructions - https://github.com/luarocks/luarocks/wiki/Installation-instructions-for-Unix
[source]
tar = "https://luarocks.org/releases/luarocks-3.11.1.tar.gz"
[build]
template = "configure"