Get things working
This commit is contained in:
parent
bd3ebcd3e5
commit
a67009d879
16
langs/v.yaml
16
langs/v.yaml
|
@ -25,18 +25,26 @@ info:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
manual: |
|
manual: |
|
||||||
git clone https://github.com/vlang/v.git
|
install -d "${pkg}/opt"
|
||||||
pushd v
|
install -d "${pkg}/usr/local/bin"
|
||||||
|
|
||||||
|
git clone https://github.com/vlang/v.git "${pkg}/opt/v"
|
||||||
|
pushd "${pkg}/opt/v"
|
||||||
|
|
||||||
make
|
make
|
||||||
cp v "${pkg}/usr/local/bin/"
|
ln -s /opt/v/v "${pkg}/usr/local/bin/"
|
||||||
|
|
||||||
|
# Force vfmt to get compiled ahead of time, otherwise this will
|
||||||
|
# happen at first invocation and fail due to lack of write
|
||||||
|
# permissions on /opt/v.
|
||||||
|
./v fmt < /dev/null
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
main: "main.v"
|
main: "main.v"
|
||||||
template: |
|
template: |
|
||||||
fn main() {
|
fn main() {
|
||||||
println('Hello, world!')
|
println('Hello, world!')
|
||||||
}
|
}
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue