Updated to `Erlang 25.3.0`

This commit is contained in:
RVG|lory 2023-04-10 17:11:27 +02:00 committed by GitHub
parent c1ed7a7118
commit 825cd586e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 0 deletions

20
packages/erlang/25.3.0/build.sh vendored Normal file
View File

@ -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

4
packages/erlang/25.3.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

5
packages/erlang/25.3.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "erlang",
"version": "25.3.0",
"aliases": ["erl", "escript"]
}

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

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

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

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