From edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 28 Aug 2022 23:54:47 +0200 Subject: user/lua: prepare libc headers --- ports/lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ports/lua (limited to 'ports/lua') diff --git a/ports/lua b/ports/lua new file mode 100644 index 0000000..fc8e8a7 --- /dev/null +++ b/ports/lua @@ -0,0 +1,20 @@ +set -eu +camellia_path_check + +VERSION=lua-5.4.4 + +fetch() { + wget http://www.lua.org/ftp/${VERSION}.tar.gz + tar xf ${VERSION}.tar.gz +} + +prep() { + [ -d ${VERSION} ] || (fetch) + cd ${VERSION} +} + +case $1 in + install) (prep; make generic "CC=cc" "MYCFLAGS=-Werror") ;; + clean) (prep; make clean) ;; + *) echo "usage: $0 install|clean"; false ;; +esac \ No newline at end of file -- cgit v1.2.3