From 7744eea4595eb26c13128bca276846d1f634c6cb Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Thu, 18 Mar 2021 12:48:28 +0530 Subject: [PATCH 1/3] pkg(lolcode-0.11.2): Add lolcode 0.11.2 --- packages/lolcode/0.11.2/build.sh | 13 +++++++++++++ packages/lolcode/0.11.2/environment | 4 ++++ packages/lolcode/0.11.2/metadata.json | 6 ++++++ packages/lolcode/0.11.2/run | 4 ++++ packages/lolcode/0.11.2/test.lol | 4 ++++ 5 files changed, 31 insertions(+) create mode 100755 packages/lolcode/0.11.2/build.sh create mode 100644 packages/lolcode/0.11.2/environment create mode 100644 packages/lolcode/0.11.2/metadata.json create mode 100644 packages/lolcode/0.11.2/run create mode 100644 packages/lolcode/0.11.2/test.lol diff --git a/packages/lolcode/0.11.2/build.sh b/packages/lolcode/0.11.2/build.sh new file mode 100755 index 0000000..33ed9f8 --- /dev/null +++ b/packages/lolcode/0.11.2/build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +PREFIX=$(realpath $(dirname $0)) + +# Cloning lolcode source +git clone https://github.com/justinmeza/lci.git lolcode +cd lolcode + +# Building and installing lolcode +./install.py --prefix="$PREFIX" + +# Cleaning up +cd ../ && rm -rf lolcode \ No newline at end of file diff --git a/packages/lolcode/0.11.2/environment b/packages/lolcode/0.11.2/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/lolcode/0.11.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/lolcode/0.11.2/metadata.json b/packages/lolcode/0.11.2/metadata.json new file mode 100644 index 0000000..80e46ea --- /dev/null +++ b/packages/lolcode/0.11.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "lolcode", + "version": "0.11.2", + "author": "Shivansh-007 ", + "aliases": ["lol", "lci"] +} diff --git a/packages/lolcode/0.11.2/run b/packages/lolcode/0.11.2/run new file mode 100644 index 0000000..ce329fb --- /dev/null +++ b/packages/lolcode/0.11.2/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +lolcode "$@" diff --git a/packages/lolcode/0.11.2/test.lol b/packages/lolcode/0.11.2/test.lol new file mode 100644 index 0000000..f93f722 --- /dev/null +++ b/packages/lolcode/0.11.2/test.lol @@ -0,0 +1,4 @@ +HAI 1.2 + CAN HAS STDIO? + VISIBLE "OK" +KTHXBYE From 228880ba9bda2fcc76f90c6970816902fb384dfc Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Fri, 19 Mar 2021 03:55:25 +0530 Subject: [PATCH 2/3] pkg(lolcode-0.11.2): Shift to cmake/make rather then running install.py --- packages/lolcode/0.11.2/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/lolcode/0.11.2/build.sh b/packages/lolcode/0.11.2/build.sh index 33ed9f8..72a9ea3 100755 --- a/packages/lolcode/0.11.2/build.sh +++ b/packages/lolcode/0.11.2/build.sh @@ -7,7 +7,9 @@ git clone https://github.com/justinmeza/lci.git lolcode cd lolcode # Building and installing lolcode -./install.py --prefix="$PREFIX" +cmake -DCMAKE_INSTALL_PREFIX:STRING="$PREFIX" . +make -j$(nproc) +make install -j$(nproc) # Cleaning up -cd ../ && rm -rf lolcode \ No newline at end of file +cd ../ && rm -rf lolcode From 412e1ec7ee76f97d3412903553983866e98e80fb Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Fri, 19 Mar 2021 04:05:43 +0530 Subject: [PATCH 3/3] =?UTF-8?q?pkg(lolcode-0.11.2):=20The=20binary=20is=20?= =?UTF-8?q?"lci"=20not=20"lolcode=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/lolcode/0.11.2/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lolcode/0.11.2/run b/packages/lolcode/0.11.2/run index ce329fb..d4e6725 100644 --- a/packages/lolcode/0.11.2/run +++ b/packages/lolcode/0.11.2/run @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put instructions to run the runtime -lolcode "$@" +lci "$@"