pkg(erlang-23.0.0): Added erlang (escript) 23.0.0
This commit is contained in:
parent
7837f1c7c0
commit
9b1e487156
|
@ -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
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "erlang",
|
||||
"version": "23.0.0",
|
||||
"author": "Dan Vargas <danvargas46@gmail.com>",
|
||||
"aliases": ["erlang", "erl", "escript"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
escript "$@"
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
main(_) ->
|
||||
io:format("OK~n").
|
Loading…
Reference in New Issue