pkg(crystal-0.36.1): Add crystal 0.36.1
This commit is contained in:
parent
9462caa94f
commit
ef27fc0327
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compile crystal files into out file
|
||||||
|
crystal build "$@" -o out --no-color && \
|
||||||
|
chmod +x out
|
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"language": "crystal",
|
||||||
|
"version": "0.36.1",
|
||||||
|
"author": "Dan Vargas <danvargas46@gmail.com>",
|
||||||
|
"aliases": ["crystal", "cr"]
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
shift # Filename is only used to compile
|
||||||
|
./out "$@"
|
|
@ -0,0 +1 @@
|
||||||
|
puts("OK")
|
Loading…
Reference in New Issue