diff --git a/packages/erlang/25.3.0/build.sh b/packages/erlang/25.3.0/build.sh new file mode 100644 index 0000000..8c7908e --- /dev/null +++ b/packages/erlang/25.3.0/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl "http://erlang.org/download/otp_src_25.3.tar.gz" -o erlang.tar.gz +tar xzf erlang.tar.gz --strip-components=1 +rm erlang.tar.gz + +export ERL_TOP=$(pwd) +./configure --prefix "$PREFIX" +make -j$(nproc) +make install -j$(nproc) + +cd .. + +rm -rf build \ No newline at end of file diff --git a/packages/erlang/25.3.0/environment b/packages/erlang/25.3.0/environment new file mode 100644 index 0000000..c6ab089 --- /dev/null +++ b/packages/erlang/25.3.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/erlang/25.3.0/metadata.json b/packages/erlang/25.3.0/metadata.json new file mode 100644 index 0000000..40367a0 --- /dev/null +++ b/packages/erlang/25.3.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "erlang", + "version": "25.3.0", + "aliases": ["erl", "escript"] +} \ No newline at end of file diff --git a/packages/erlang/25.3.0/run b/packages/erlang/25.3.0/run new file mode 100644 index 0000000..135d9f4 --- /dev/null +++ b/packages/erlang/25.3.0/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# Put instructions to run the runtime +escript "$@" \ No newline at end of file diff --git a/packages/erlang/25.3.0/test.erl b/packages/erlang/25.3.0/test.erl new file mode 100644 index 0000000..d898d2c --- /dev/null +++ b/packages/erlang/25.3.0/test.erl @@ -0,0 +1,3 @@ + +main(_) -> + io:format("OK~n"). \ No newline at end of file