Skip to content
Snippets Groups Projects
Commit 223ba2b9 authored by Dorian Davi's avatar Dorian Davi Committed by Jeremy Soller
Browse files

Luarocks port

parent 7fda465a
No related branches found
No related tags found
1 merge request!413Luarocks port
...@@ -11,7 +11,5 @@ rsync -av --delete "${COOKBOOK_SOURCE}/" ./ ...@@ -11,7 +11,5 @@ rsync -av --delete "${COOKBOOK_SOURCE}/" ./
CC="${TARGET}-gcc -std=gnu99" \ CC="${TARGET}-gcc -std=gnu99" \
RANLIB="${TARGET}-ranlib" \ RANLIB="${TARGET}-ranlib" \
SYSLDFLAGS="-static" \ SYSLDFLAGS="-static" \
generic install INSTALL_TOP="${COOKBOOK_STAGE}"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp src/lua src/luac "${COOKBOOK_STAGE}/bin"
""" """
[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
"""
#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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment