Fixed Lua's package.path

This commit is contained in:
Alexander Hill
2026-01-31 15:13:24 -05:00
parent a917c798eb
commit 353a0a0db7
3 changed files with 27 additions and 2 deletions

View File

@@ -1,15 +1,18 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="57ccc32bbbd005cab75bcc52444052535af691789dba2b9016d5c50640d68b3d"
SRC_NAME="lua"
SRC_REVISION=1
SRC_URL="https://lua.org/ftp/lua-5.5.0.tar.gz"
SRC_VERSION="5.5.0"
build() {
tar xf ../$SRC_FILENAME
cd lua-$SRC_VERSION/
# NOTE: LUA_ROOT defaults to /usr/local, so it is set to /usr below to
# prevent later issues with Lua modules. ~ahill
sed -i '/#define LUA_ROOT/s|/usr/local/|/usr/|' src/luaconf.h
# NOTE: Lua automatically assumes that GCC is installed, which is not the
# case here. CC is manually defined as a result. ~ahill
# TODO: Tweak luaconf.h to contain the correct directories. ~ahill
make -O -j $TT_PROCS CC=$CC
make -O -j $TT_PROCS install \
INSTALL_BIN=$TT_INSTALLDIR$TT_BINDIR \