pkg(dragon-1.9.8): Add dragon 1.9.8 (#220)

* pkg(dragon-1.9.8): Add dragon 1.9.8

* pkg(dragon-1.9.8): Remove manpages and self alias
This commit is contained in:
Dan Vargas 2021-04-21 21:31:00 -05:00 committed by GitHub
parent 8424307029
commit e975b64f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 0 deletions

25
packages/dragon/1.9.8/build.sh vendored Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Dragon install
mkdir -p build
cd build
curl "https://dragon-lang.org/Dragon_1.9.8_linux(x86_x64).tar.bz2" -o dragon.tar.bz2
tar xjf dragon.tar.bz2 --strip-components=1
### re-purposed the install script for local install and without manpages
mkdir -p ../bin
cp dragon ../bin/
chmod +x ../bin/dragon
cp -r runtime ../bin/
chmod +x ../bin/runtime/bin/java
sed -i 's|/bin/runtime/bin/java|$JAVA_RUNTIME|g' ../bin/dragon
###
cd ../
rm -rf build

5
packages/dragon/1.9.8/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# dragon binary & java runtime path
export PATH=$PWD/bin:$PATH
export JAVA_RUNTIME=$PWD/bin/runtime/bin/java

5
packages/dragon/1.9.8/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "dragon",
"version": "1.9.8",
"aliases": []
}

4
packages/dragon/1.9.8/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# dragon run
dragon -r "$@"

1
packages/dragon/1.9.8/test.dragon vendored Normal file
View File

@ -0,0 +1 @@
showln "OK"