mirror of
https://linux.maple.camp/git/ahill/maplelinux-bootstrap.git
synced 2026-02-11 10:13:35 +00:00
Fixed Lua's package.path
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user