pkg(scala-3.0.0): Add scala 3.0.0
This commit is contained in:
parent
adf97a7df0
commit
389c9be86c
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Scala depends on Java
|
||||||
|
mkdir -p java
|
||||||
|
cd java
|
||||||
|
curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz
|
||||||
|
tar xzf java.tar.gz --strip-components=1
|
||||||
|
rm java.tar.gz
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir -p scala
|
||||||
|
cd scala
|
||||||
|
curl -L "https://github.com/lampepfl/dotty/releases/download/3.0.0-RC1/scala3-3.0.0-RC1.tar.gz" -o scala.tar.gz
|
||||||
|
tar -xzf scala.tar.gz --strip-components=1
|
||||||
|
rm scala.tar.gz
|
||||||
|
cd ..
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Scala requires JAVA_HOME to be set
|
||||||
|
export JAVA_HOME=$PWD/java
|
||||||
|
export PATH=$PWD/scala/bin:$PATH
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"language": "scala",
|
||||||
|
"version": "3.0.0",
|
||||||
|
"aliases": ["scala","sc"],
|
||||||
|
"author": "Dan Vargas <danvargas46@gmail.com>"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Put instructions to run the runtime
|
||||||
|
scala -color never "$@"
|
|
@ -0,0 +1,3 @@
|
||||||
|
@main def run(): Unit = {
|
||||||
|
println("OK")
|
||||||
|
}
|
Loading…
Reference in New Issue