From 4f5ef06adf5f75477766e858cef88a8eb1e603bc Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Fri, 17 Sep 2021 09:59:24 -0500 Subject: [PATCH] pkg(freebasic-1.8.0): Add Freebasic --- packages/freebasic/1.8.0/build.sh | 5 +++++ packages/freebasic/1.8.0/compile | 4 ++++ packages/freebasic/1.8.0/environment | 4 ++++ packages/freebasic/1.8.0/metadata.json | 5 +++++ packages/freebasic/1.8.0/run | 5 +++++ packages/freebasic/1.8.0/test.bas | 1 + readme.md | 1 + 7 files changed, 25 insertions(+) create mode 100755 packages/freebasic/1.8.0/build.sh create mode 100644 packages/freebasic/1.8.0/compile create mode 100644 packages/freebasic/1.8.0/environment create mode 100644 packages/freebasic/1.8.0/metadata.json create mode 100644 packages/freebasic/1.8.0/run create mode 100644 packages/freebasic/1.8.0/test.bas diff --git a/packages/freebasic/1.8.0/build.sh b/packages/freebasic/1.8.0/build.sh new file mode 100755 index 0000000..bd58488 --- /dev/null +++ b/packages/freebasic/1.8.0/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +curl -L "https://sourceforge.net/projects/fbc/files/FreeBASIC-1.08.0/Binaries-Linux/FreeBASIC-1.08.0-linux-x86_64.tar.gz/download" -o freebasic.tar.gz +tar xf freebasic.tar.gz --strip-components=1 +rm freebasic.tar.gz diff --git a/packages/freebasic/1.8.0/compile b/packages/freebasic/1.8.0/compile new file mode 100644 index 0000000..b836b3d --- /dev/null +++ b/packages/freebasic/1.8.0/compile @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Compile bas files +fbc -lang qb -b "$@" -x out diff --git a/packages/freebasic/1.8.0/environment b/packages/freebasic/1.8.0/environment new file mode 100644 index 0000000..144c737 --- /dev/null +++ b/packages/freebasic/1.8.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Path to fbc compiler +export PATH=$PWD/bin:$PATH diff --git a/packages/freebasic/1.8.0/metadata.json b/packages/freebasic/1.8.0/metadata.json new file mode 100644 index 0000000..1dcf1ff --- /dev/null +++ b/packages/freebasic/1.8.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "freebasic", + "version": "1.8.0", + "aliases": ["bas", "fbc", "basic", "qbasic", "quickbasic"] +} diff --git a/packages/freebasic/1.8.0/run b/packages/freebasic/1.8.0/run new file mode 100644 index 0000000..610d7e6 --- /dev/null +++ b/packages/freebasic/1.8.0/run @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Run output file from compile with arguments +shift +./out "$@" diff --git a/packages/freebasic/1.8.0/test.bas b/packages/freebasic/1.8.0/test.bas new file mode 100644 index 0000000..b13a0ef --- /dev/null +++ b/packages/freebasic/1.8.0/test.bas @@ -0,0 +1 @@ +PRINT "OK" \ No newline at end of file diff --git a/readme.md b/readme.md index 1240cbe..02a3a03 100644 --- a/readme.md +++ b/readme.md @@ -340,6 +340,7 @@ Content-Type: application/json `erlang`, `forte`, `fortran`, +`freebasic`, `go`, `golfscript`, `groovy`,