From d03165beb28bc10b826f86ce827cb42e7073796b Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:20:40 -0500 Subject: [PATCH] add test package --- packages/crystal/0.36.2/build.sh | 7 +++++++ packages/crystal/0.36.2/compile | 5 +++++ packages/crystal/0.36.2/environment | 1 + packages/crystal/0.36.2/metadata.json | 5 +++++ packages/crystal/0.36.2/run | 4 ++++ packages/crystal/0.36.2/test.cr | 1 + 6 files changed, 23 insertions(+) create mode 100755 packages/crystal/0.36.2/build.sh create mode 100644 packages/crystal/0.36.2/compile create mode 100644 packages/crystal/0.36.2/environment create mode 100644 packages/crystal/0.36.2/metadata.json create mode 100644 packages/crystal/0.36.2/run create mode 100644 packages/crystal/0.36.2/test.cr diff --git a/packages/crystal/0.36.2/build.sh b/packages/crystal/0.36.2/build.sh new file mode 100755 index 0000000..ba10f3f --- /dev/null +++ b/packages/crystal/0.36.2/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +curl -L "https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal-0.36.1-1-linux-x86_64.tar.gz" -o crystal.tar.gz +tar xzf crystal.tar.gz --strip-components=1 +rm crystal.tar.gz diff --git a/packages/crystal/0.36.2/compile b/packages/crystal/0.36.2/compile new file mode 100644 index 0000000..afbad6c --- /dev/null +++ b/packages/crystal/0.36.2/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Compile crystal files into out file +crystal build "$@" -o out --no-color && \ +chmod +x out diff --git a/packages/crystal/0.36.2/environment b/packages/crystal/0.36.2/environment new file mode 100644 index 0000000..bd0ff98 --- /dev/null +++ b/packages/crystal/0.36.2/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/crystal/0.36.2/metadata.json b/packages/crystal/0.36.2/metadata.json new file mode 100644 index 0000000..f719caa --- /dev/null +++ b/packages/crystal/0.36.2/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "crystal", + "version": "0.36.2", + "aliases": ["crystal", "cr"] +} diff --git a/packages/crystal/0.36.2/run b/packages/crystal/0.36.2/run new file mode 100644 index 0000000..6955ba9 --- /dev/null +++ b/packages/crystal/0.36.2/run @@ -0,0 +1,4 @@ +#!/bin/bash + +shift # Filename is only used to compile +./out "$@" diff --git a/packages/crystal/0.36.2/test.cr b/packages/crystal/0.36.2/test.cr new file mode 100644 index 0000000..3fca0dd --- /dev/null +++ b/packages/crystal/0.36.2/test.cr @@ -0,0 +1 @@ +puts("OK") \ No newline at end of file