pkg(pure-0.68): Add pure-lang 0.68

This commit is contained in:
Shivansh-007 2021-03-19 10:03:14 +05:30
parent 75f5d65fc1
commit e0b2915861
5 changed files with 45 additions and 0 deletions

29
packages/pure/0.68/build.sh vendored Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env bash
PREFIX=$(realpath $(dirname $0))
# Installing LLVM and clang (the latter is optional but recommended)
curl "https://releases.llvm.org/3.4.2/llvm-3.4.2.src.tar.gz" -o llvm.tar.gz
curl "https://releases.llvm.org/3.4.2/cfe-3.4.2.src.tar.gz" -o clang.tar.gz
tar xfz llvm.tar.gz --strip-components=1
tar xfz clang.tar.gz --strip-components=1
mv clang llvm/tools/clang
rm llvm.tar.gz && rm clang.tar.gz
cd llvm
# Building and installing - LLVM and clang
./configure --enable-shared --enable-optimized --enable-targets=host-only --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
# Installing Pure
curl "https://github.com/agraef/pure-lang/releases/download/pure-0.68/pure-0.68.tar.gz" -o pure.tar.gz
tar xzf pure.tar.gz --strip-components=1
rm pure.tar.gz
cd pure
# Building and installing pure-lang
./configure --enable-release --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)

4
packages/pure/0.68/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/pure/0.68/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "pure",
"version": "0.68",
"author": "Shivansh-007 <shivansh-007@outlook.com>",
"aliases": []
}

4
packages/pure/0.68/run vendored Normal file
View file

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

2
packages/pure/0.68/test.pure vendored Normal file
View file

@ -0,0 +1,2 @@
using system;
puts "OK";