From e975b64f2df63db49e9d8c33e4c0c66623846900 Mon Sep 17 00:00:00 2001 From: Dan Vargas <10914883+dvargas46@users.noreply.github.com> Date: Wed, 21 Apr 2021 21:31:00 -0500 Subject: [PATCH] pkg(dragon-1.9.8): Add dragon 1.9.8 (#220) * pkg(dragon-1.9.8): Add dragon 1.9.8 * pkg(dragon-1.9.8): Remove manpages and self alias --- packages/dragon/1.9.8/build.sh | 25 +++++++++++++++++++++++++ packages/dragon/1.9.8/environment | 5 +++++ packages/dragon/1.9.8/metadata.json | 5 +++++ packages/dragon/1.9.8/run | 4 ++++ packages/dragon/1.9.8/test.dragon | 1 + 5 files changed, 40 insertions(+) create mode 100755 packages/dragon/1.9.8/build.sh create mode 100644 packages/dragon/1.9.8/environment create mode 100644 packages/dragon/1.9.8/metadata.json create mode 100644 packages/dragon/1.9.8/run create mode 100644 packages/dragon/1.9.8/test.dragon diff --git a/packages/dragon/1.9.8/build.sh b/packages/dragon/1.9.8/build.sh new file mode 100755 index 0000000..560db8a --- /dev/null +++ b/packages/dragon/1.9.8/build.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# Dragon install +mkdir -p build + +cd build + +curl "https://dragon-lang.org/Dragon_1.9.8_linux(x86_x64).tar.bz2" -o dragon.tar.bz2 +tar xjf dragon.tar.bz2 --strip-components=1 + +### re-purposed the install script for local install and without manpages + +mkdir -p ../bin +cp dragon ../bin/ +chmod +x ../bin/dragon + +cp -r runtime ../bin/ +chmod +x ../bin/runtime/bin/java + +sed -i 's|/bin/runtime/bin/java|$JAVA_RUNTIME|g' ../bin/dragon + +### + +cd ../ +rm -rf build diff --git a/packages/dragon/1.9.8/environment b/packages/dragon/1.9.8/environment new file mode 100644 index 0000000..b4106f8 --- /dev/null +++ b/packages/dragon/1.9.8/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# dragon binary & java runtime path +export PATH=$PWD/bin:$PATH +export JAVA_RUNTIME=$PWD/bin/runtime/bin/java \ No newline at end of file diff --git a/packages/dragon/1.9.8/metadata.json b/packages/dragon/1.9.8/metadata.json new file mode 100644 index 0000000..86cfc4c --- /dev/null +++ b/packages/dragon/1.9.8/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "dragon", + "version": "1.9.8", + "aliases": [] +} diff --git a/packages/dragon/1.9.8/run b/packages/dragon/1.9.8/run new file mode 100644 index 0000000..87512ae --- /dev/null +++ b/packages/dragon/1.9.8/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# dragon run +dragon -r "$@" diff --git a/packages/dragon/1.9.8/test.dragon b/packages/dragon/1.9.8/test.dragon new file mode 100644 index 0000000..6c33003 --- /dev/null +++ b/packages/dragon/1.9.8/test.dragon @@ -0,0 +1 @@ +showln "OK" \ No newline at end of file