pkg(brainfuck-2.7.3): add brainfuck

This commit is contained in:
Thomas Hobson 2021-03-19 22:13:27 +13:00
parent 9003905649
commit 4b409cb011
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
5 changed files with 38 additions and 0 deletions

23
packages/brainfuck/2.7.3/build.sh vendored Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
PREFIX=$(realpath $(dirname $0))
mkdir -p build
git clone https://github.com/fabianishere/brainfuck.git
cd build
cmake ../brainfuck
make -j$(nproc)
make install -j$(nproc)
# === autoconf based ===
./configure --prefix "$PREFIX"
cd ../
rm -rf build brainfuck

4
packages/brainfuck/2.7.3/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

View File

@ -0,0 +1,6 @@
{
"language": "brainfuck",
"version": "2.7.3",
"aliases": ["bf"],
"author": "Thomas Hobson <git@hexf.me>"
}

4
packages/brainfuck/2.7.3/run vendored Normal file
View File

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

1
packages/brainfuck/2.7.3/test.bf vendored Normal file
View File

@ -0,0 +1 @@
-[--->+<]>------.----.