summaryrefslogtreecommitdiff
path: root/ports/lua
diff options
context:
space:
mode:
Diffstat (limited to 'ports/lua')
-rw-r--r--ports/lua20
1 files changed, 20 insertions, 0 deletions
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