pkg(erlang-23.0.0): Added erlang (escript) 23.0.0

This commit is contained in:
Dan Vargas 2021-03-13 20:57:52 -06:00 committed by Thomas
parent 7837f1c7c0
commit 9b1e487156
5 changed files with 38 additions and 0 deletions

21
packages/erlang/23.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "http://erlang.org/download/otp_src_23.0.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

4
packages/erlang/23.0.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/erlang/23.0.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "erlang",
"version": "23.0.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["erlang", "erl", "escript"]
}

4
packages/erlang/23.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
escript "$@"

3
packages/erlang/23.0.0/test.erl vendored Normal file
View File

@ -0,0 +1,3 @@
main(_) ->
io:format("OK~n").