Compare commits
29 Commits
86d897d580
...
c1ed7a7118
Author | SHA1 | Date |
---|---|---|
Thomas Hobson | c1ed7a7118 | |
Thomas Hobson | 8381f40388 | |
Thomas Hobson | 8cfdd337f9 | |
Thomas Hobson | 32813594d6 | |
Thomas Hobson | b043f07565 | |
Thomas Hobson | fa4af90548 | |
Thomas Hobson | 89b173c36a | |
Thomas Hobson | dac6b765ab | |
Thomas Hobson | 9a93c804bf | |
Thomas Hobson | 539aad3873 | |
Thomas Hobson | 52d5c2262a | |
Thomas Hobson | 388a9bca68 | |
Thomas Hobson | 54a4b6e449 | |
Thomas Hobson | d4fff15197 | |
Thomas Hobson | acc449326e | |
RVG|lory | 4c45648a79 | |
RVG|lory | 1da99d47f1 | |
RVG|lory | 8a778f7033 | |
RVG|lory | 6a48428970 | |
RVG|lory | 334e7820ff | |
RVG|lory | 0c253a667d | |
RVG|lory | 28314f16ab | |
RVG|lory | 7ae50eaef7 | |
RVG|lory | df553c80ea | |
RVG|lory | b65c5f84df | |
RVG|lory | 6524db168f | |
RVG|lory | 314a96a8d4 | |
RVG|lory | 2ae73c5dae | |
RVG|lory | 91d4d402de |
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to build your package in here
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
curl "https://ftp.gnu.org/gnu/bash/bash-5.2.tar.gz" -o bash.tar.gz
|
||||
|
||||
tar xzf bash.tar.gz --strip-components=1
|
||||
|
||||
# === autoconf based ===
|
||||
./configure --prefix "$PREFIX"
|
||||
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
cd ../
|
||||
rm -rf build
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "bash",
|
||||
"version": "5.2.0",
|
||||
"aliases": ["sh"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
bash "$@"
|
|
@ -0,0 +1 @@
|
|||
echo "OK"
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -L "https://storage.googleapis.com/dart-archive/channels/stable/release/2.19.6/sdk/dartsdk-linux-x64-release.zip" -o dart.zip
|
||||
|
||||
unzip dart.zip
|
||||
rm dart.zip
|
||||
|
||||
cp -r dart-sdk/* .
|
||||
rm -rf dart-sdk
|
||||
|
||||
chmod -R +rx bin
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "dart",
|
||||
"version": "2.19.6",
|
||||
"aliases": []
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
dart run "$@"
|
|
@ -0,0 +1,3 @@
|
|||
void main() {
|
||||
print('OK');
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -L "https://sourceforge.net/projects/fbc/files/FreeBASIC-1.09.0/Binaries-Linux/FreeBASIC-1.09.0-linux-x86_64.tar.gz/download" -o freebasic.tar.gz
|
||||
tar xf freebasic.tar.gz --strip-components=1
|
||||
rm freebasic.tar.gz
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile bas files
|
||||
fbc -lang qb -b "$@" -x out
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Path to fbc compiler
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "freebasic",
|
||||
"version": "1.9.0",
|
||||
"aliases": ["bas", "fbc", "basic", "qbasic", "quickbasic"]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run output file from compile with arguments
|
||||
shift
|
||||
./out "$@"
|
|
@ -0,0 +1 @@
|
|||
PRINT "OK"
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Install location
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
# Download and extract Julia source
|
||||
curl -L "https://github.com/JuliaLang/julia/releases/download/v1.8.5/julia-1.8.5.tar.gz" -o julia.tar.gz
|
||||
tar xzf julia.tar.gz --strip-components=1
|
||||
|
||||
# Build
|
||||
echo "JULIA_CPU_TARGET=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)
|
||||
prefix=$PREFIX" > Make.user
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
# Cleanup
|
||||
cd ..
|
||||
rm -rf build
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Add Julia binary to path
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "julia",
|
||||
"version": "1.8.5",
|
||||
"aliases": ["jl"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run without startup or history file
|
||||
julia --startup-file=no --history-file=no "$@"
|
|
@ -0,0 +1 @@
|
|||
println("OK")
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Download and extract JDK8
|
||||
curl -L "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u292b10.tar.gz" -o jdk.tar.gz
|
||||
tar xzf jdk.tar.gz --strip-components=1
|
||||
rm jdk.tar.gz
|
||||
|
||||
# Download and extract Kotlin
|
||||
curl -L "https://github.com/JetBrains/kotlin/releases/download/v1.8.20/kotlin-compiler-1.8.20.zip" -o kotlin.zip
|
||||
unzip kotlin.zip
|
||||
rm kotlin.zip
|
||||
cp -r kotlinc/* .
|
||||
rm -rf kotlinc
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rename 's/$/\.kt/' "$@" # Add .kt extension
|
||||
|
||||
# Compile Kotlin code to a jar file
|
||||
kotlinc *.kt -include-runtime -d code.jar
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Add java and kotlinc to path
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "kotlin",
|
||||
"version": "1.8.20",
|
||||
"aliases": ["kt"]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run jar file
|
||||
shift
|
||||
java -jar code.jar "$@"
|
|
@ -0,0 +1,3 @@
|
|||
fun main() {
|
||||
println("OK")
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to build your package in here
|
||||
curl -R -O -L http://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||
tar zxf lua-5.4.4.tar.gz
|
||||
rm lua-5.4.4.tar.gz
|
||||
|
||||
cd lua-5.4.4
|
||||
# Building Lua
|
||||
make linux
|
||||
# To check that Lua has been built correctly
|
||||
make test
|
||||
# Installing Lua
|
||||
make linux install
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH="$PWD/lua-5.4.4/src:$PATH"
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "lua",
|
||||
"version": "5.4.4",
|
||||
"aliases": []
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
lua "$@"
|
|
@ -0,0 +1 @@
|
|||
print("OK")
|
|
@ -5,7 +5,7 @@ PREFIX=$(realpath $(dirname $0))
|
|||
mkdir -p build/mono build/mono-basic
|
||||
cd build
|
||||
|
||||
curl "https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz" -o mono.tar.xz
|
||||
curl "https://download.mono-project.com/sources/mono/mono-6.12.0.182.tar.xz" -o mono.tar.xz
|
||||
curl -L "https://github.com/mono/mono-basic/archive/refs/tags/4.7.tar.gz" -o mono-basic.tar.gz
|
||||
tar xf mono.tar.xz --strip-components=1 -C mono
|
||||
tar xf mono-basic.tar.gz --strip-components=1 -C mono-basic
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
# Prebuilt binary - source *can* be built, but it requires gcc
|
||||
curl -L "https://nim-lang.org/download/nim-1.6.2-linux_x64.tar.xz" -o nim.tar.xz
|
||||
tar xf nim.tar.xz --strip-components=1
|
||||
rm nim.tar.xz
|
||||
|
||||
./install.sh "$PREFIX"
|
||||
|
||||
cd ../
|
||||
|
||||
rm -rf build
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile nim file(s)
|
||||
nim --hints:off --out:out --nimcache:./ c "$@"
|
||||
chmod +x out
|
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/nim/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "nim",
|
||||
"version": "1.6.2",
|
||||
"aliases": []
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift # Filename is only used to compile
|
||||
./out "$@"
|
|
@ -0,0 +1 @@
|
|||
echo("OK")
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Build octave from source
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
curl -L "https://ftpmirror.gnu.org/octave/octave-8.1.0.tar.gz" -o octave.tar.gz
|
||||
|
||||
tar xzf octave.tar.gz --strip-components=1
|
||||
|
||||
# === autoconf based ===
|
||||
# Disable support for GUI, HDF5 and Java
|
||||
./configure --prefix "$PREFIX" --without-opengl --without-qt --without-x --without-hdf5 --disable-java
|
||||
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
cd ../
|
||||
rm -rf build
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Path to octave binary
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "octave",
|
||||
"version": "8.1.0",
|
||||
"aliases": ["matlab", "m"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run octave scripts without gui, history, init scripts and initial message
|
||||
octave --no-gui --no-window-system --no-history --no-init-file --no-site-file --norc --quiet "$@"
|
|
@ -0,0 +1 @@
|
|||
disp('OK')
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
curl -L "https://sourceforge.net/projects/freepascal/files/Linux/3.2.2/fpc-3.2.2.x86_64-linux.tar/download" -o pascal.tar
|
||||
tar xf pascal.tar --strip-components=1
|
||||
|
||||
# FreePascal uses an interactive installer
|
||||
./install.sh << ANSWERS
|
||||
$PREFIX
|
||||
n
|
||||
n
|
||||
n
|
||||
ANSWERS
|
||||
|
||||
cd ..
|
||||
rm -rf build
|
||||
|
||||
# A sample config (needed for each "project") is written to /etc
|
||||
# We'll copy that into the local lib dir (fpc searches there too on compile)
|
||||
mkdir lib/fpc/etc
|
||||
cp -r /etc/fp* lib/fpc/etc/
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile pascal files
|
||||
fpc -oout -v0 "$@"
|
||||
chmod +x out
|
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "pascal",
|
||||
"version": "3.2.2",
|
||||
"aliases": ["freepascal", "pp", "pas"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift # Filename is only used to compile
|
||||
./out "$@"
|
|
@ -0,0 +1,5 @@
|
|||
program test;
|
||||
|
||||
begin
|
||||
writeln('OK');
|
||||
end.
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
curl "https://www.cpan.org/src/5.0/perl-5.36.0.tar.gz" -o perl.tar.gz
|
||||
tar xzf perl.tar.gz --strip-components=1
|
||||
./Configure -des -Dprefix="$PREFIX"
|
||||
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf build
|
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "perl",
|
||||
"version": "5.36.0",
|
||||
"aliases": ["pl"]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
perl "$@"
|
|
@ -0,0 +1 @@
|
|||
print("OK")
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build/php
|
||||
cd build
|
||||
|
||||
curl "https://www.php.net/distributions/php-8.2.3.tar.gz" -o php.tar.gz
|
||||
tar xzf php.tar.gz --strip-components=1 -C php
|
||||
|
||||
cd php
|
||||
|
||||
|
||||
./configure --prefix "$PREFIX"
|
||||
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
cd ../../
|
||||
rm -rf build
|
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "php",
|
||||
"version": "8.2.3",
|
||||
"aliases": []
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
php "$@"
|
|
@ -0,0 +1 @@
|
|||
OK
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Download and extract JDK8
|
||||
curl -L "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u292b10.tar.gz" -o jdk.tar.gz
|
||||
tar xzf jdk.tar.gz --strip-components=1
|
||||
rm jdk.tar.gz
|
||||
|
||||
# Download and extract Scala 3
|
||||
curl -L "https://github.com/lampepfl/dotty/releases/download/3.2.2/scala3-3.2.2.tar.gz" -o scala.tar.gz
|
||||
tar -xzf scala.tar.gz --strip-components=1
|
||||
rm scala.tar.gz
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile scala classes into a jar file
|
||||
scalac "$@" -d out.jar
|
||||
|
||||
# Create the Manifest and include scala lib jars:
|
||||
# NOTE: - entry point will only consider @main and App traits from the main file
|
||||
# - scala lib jars will be added to the class path in order to run the jar properly
|
||||
echo "Main-Class: $(grep -oP '\@main\s+def\s+\K[a-zA-Z][a-zA-Z0-9]*|object\s+\K[a-zA-Z][a-zA-Z0-9]*(?=\s+extends\s+App)' $1)
|
||||
Class-Path: $(echo $JAVA_HOME/lib/*.jar | sed 's/\s/\n /g')
|
||||
" > manifest.txt
|
||||
|
||||
# Update the jar with the manifest
|
||||
jar ufm out.jar manifest.txt
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Scala requires JAVA_HOME to be set
|
||||
export JAVA_HOME=$PWD
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "scala",
|
||||
"version": "3.2.2",
|
||||
"aliases": ["sc"]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run jar file
|
||||
shift
|
||||
java -jar out.jar "$@"
|
|
@ -0,0 +1,3 @@
|
|||
@main def run(): Unit = {
|
||||
println("OK")
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Cloning vlang source
|
||||
git clone https://github.com/vlang/v
|
||||
cd v
|
||||
|
||||
# Building and installing vlang
|
||||
make
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH="$PWD/v:$PATH"
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "vlang",
|
||||
"version": "0.3.3",
|
||||
"aliases": ["v"]
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Export environment variables
|
||||
export VMODULES="$PWD"
|
||||
export TMPDIR="$PWD"
|
||||
|
||||
# Put instructions to run the runtime
|
||||
|
||||
filename=$1
|
||||
|
||||
rename 's/$/\.v/' $filename # Add .v extension
|
||||
|
||||
shift
|
||||
v run $filename.v "$@"
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println('OK')
|
||||
}
|
Loading…
Reference in New Issue