pkg(freebasic-1.8.0): Add Freebasic
This commit is contained in:
parent
7d90cddf27
commit
5280739326
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile bas files
|
||||
fbc -lang qb -b "$@" -x out
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Path to fbc compiler
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "freebasic",
|
||||
"version": "1.8.0",
|
||||
"aliases": ["bas", "fbc", "basic", "qbasic", "quickbasic"]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run output file from compile with arguments
|
||||
shift
|
||||
./out "$@"
|
|
@ -0,0 +1 @@
|
|||
PRINT "OK"
|
Loading…
Reference in New Issue