From 8f71c8f4a779975069e85d1642b1b356757c1359 Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Wed, 17 Mar 2021 15:12:32 +0530 Subject: [PATCH] pkg(lua-5.4.2): Add lua 5.4.2 --- packages/lua/5.4.2/build.sh | 14 ++++++++++++++ packages/lua/5.4.2/environment | 4 ++++ packages/lua/5.4.2/metadata.json | 6 ++++++ packages/lua/5.4.2/run | 4 ++++ packages/lua/5.4.2/test.lua | 1 + 5 files changed, 29 insertions(+) create mode 100755 packages/lua/5.4.2/build.sh create mode 100644 packages/lua/5.4.2/environment create mode 100644 packages/lua/5.4.2/metadata.json create mode 100644 packages/lua/5.4.2/run create mode 100644 packages/lua/5.4.2/test.lua diff --git a/packages/lua/5.4.2/build.sh b/packages/lua/5.4.2/build.sh new file mode 100755 index 0000000..8b02f7d --- /dev/null +++ b/packages/lua/5.4.2/build.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Put instructions to build your package in here +curl -R -O -L http://www.lua.org/ftp/lua-5.4.2.tar.gz +tar zxf lua-5.4.2.tar.gz +rm lua-5.4.2.tar.gz + +cd lua-5.4.2 +# Building Lua +make linux +# To check that Lua has been built correctly +make test +# Installing Lua +make linux install diff --git a/packages/lua/5.4.2/environment b/packages/lua/5.4.2/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/lua/5.4.2/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/lua/5.4.2/metadata.json b/packages/lua/5.4.2/metadata.json new file mode 100644 index 0000000..401c03a --- /dev/null +++ b/packages/lua/5.4.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "lua", + "version": "5.4.2", + "author": "Shivansh-007 ", + "aliases": ["lua"] +} \ No newline at end of file diff --git a/packages/lua/5.4.2/run b/packages/lua/5.4.2/run new file mode 100644 index 0000000..d23038b --- /dev/null +++ b/packages/lua/5.4.2/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +lua "$@" diff --git a/packages/lua/5.4.2/test.lua b/packages/lua/5.4.2/test.lua new file mode 100644 index 0000000..3f2688f --- /dev/null +++ b/packages/lua/5.4.2/test.lua @@ -0,0 +1 @@ +print("OK") \ No newline at end of file