From fe6942738984bb1150ac5513cf5c31d9d2f61c8c Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Mon, 20 Feb 2023 00:23:31 -0500 Subject: [PATCH] add gleam --- packages/gleam/0.26.2/build.sh | 13 +++++++++++++ packages/gleam/0.26.2/environment | 2 ++ packages/gleam/0.26.2/metadata.json | 5 +++++ packages/gleam/0.26.2/run | 5 +++++ 4 files changed, 25 insertions(+) create mode 100755 packages/gleam/0.26.2/build.sh create mode 100644 packages/gleam/0.26.2/environment create mode 100644 packages/gleam/0.26.2/metadata.json create mode 100644 packages/gleam/0.26.2/run diff --git a/packages/gleam/0.26.2/build.sh b/packages/gleam/0.26.2/build.sh new file mode 100755 index 0000000..407be28 --- /dev/null +++ b/packages/gleam/0.26.2/build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Install Erlang +apt-get update +apt-get install wget -y +wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb +dpkg -i erlang-solutions_2.0_all.deb +apt-get install esl-erlang + +# Install Gleam +curl -L "https://github.com/gleam-lang/gleam/releases/download/v0.26.2/gleam-v0.26.2-x86_64-unknown-linux-musl.tar.gz" --output gleam.tar.gz +mkdir gleam +tar -xf gleam.tar.gz -C gleam diff --git a/packages/gleam/0.26.2/environment b/packages/gleam/0.26.2/environment new file mode 100644 index 0000000..f339d4b --- /dev/null +++ b/packages/gleam/0.26.2/environment @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +export PATH:=$PWD/gleam:PATH diff --git a/packages/gleam/0.26.2/metadata.json b/packages/gleam/0.26.2/metadata.json new file mode 100644 index 0000000..240508f --- /dev/null +++ b/packages/gleam/0.26.2/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "gleam", + "version": "0.26.2", + "aliases": ["gleam"] +} diff --git a/packages/gleam/0.26.2/run b/packages/gleam/0.26.2/run new file mode 100644 index 0000000..7bef496 --- /dev/null +++ b/packages/gleam/0.26.2/run @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +gleam new project +cat $1 > project/project.gleam +cd project +gleam run