From 9cf9d8847b94a3f605d9dcdf761e28d66463c88a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 28 Jun 2025 20:43:28 +0300 Subject: [PATCH] ports: Add lua port --- ports/lua/build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 ports/lua/build.sh diff --git a/ports/lua/build.sh b/ports/lua/build.sh new file mode 100755 index 00000000..51c2604e --- /dev/null +++ b/ports/lua/build.sh @@ -0,0 +1,17 @@ +#!/bin/bash ../install.sh + +NAME='lua' +VERSION='5.4.7' +DOWNLOAD_URL="https://www.lua.org/ftp/lua-$VERSION.tar.gz#9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30" + +configure() { + make clean +} + +build() { + make -j$(nproc) PLAT=posix CC="$CC" LIBS='$(SYSLIBS) $(MYLIBS)' || exit 1 +} + +install() { + make install PLAT=posix INSTALL_TOP="$BANAN_SYSROOT/usr" || exit 1 +}