pkg(vlang-0.1.13): Add vlang 0.1.13 (#177)

* pkg(vlang-0.1.13): Add vlang 0.1.13

* Export environment variables: VMODULES and TMPDIR environment vars to the current working dir in the run script.

Co-authored-by: Shivansh-007 <Shivansh-007@users.noreply.github.com>
This commit is contained in:
Shivansh-007 2021-03-20 06:16:54 +05:30 committed by GitHub
parent d85f1d2c5b
commit 332a077f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 0 deletions

8
packages/vlang/0.1.13/build.sh vendored Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Cloning vlang source
git clone https://github.com/vlang/v
cd v
# Building and installing vlang
make

4
packages/vlang/0.1.13/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH="$PWD/v:$PATH"

6
packages/vlang/0.1.13/metadata.json vendored Normal file
View File

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

8
packages/vlang/0.1.13/run vendored Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Export environment variables
export VMODULES="$PWD"
export TMPDIR="$PWD"
# Put instructions to run the runtime
v run "$@"

3
packages/vlang/0.1.13/test.v vendored Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println('OK')
}