mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 22:04:19 +08:00
Luarocks port
This commit is contained in:
parent
7fda465a35
commit
223ba2b908
@ -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}"
|
||||
"""
|
||||
|
||||
18
recipes/dev/luarocks/recipe.toml
Normal file
18
recipes/dev/luarocks/recipe.toml
Normal 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
|
||||
"""
|
||||
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user