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:
|
||||
manual: |
|
||||
git clone https://github.com/vlang/v.git
|
||||
pushd v
|
||||
install -d "${pkg}/opt"
|
||||
install -d "${pkg}/usr/local/bin"
|
||||
|
||||
git clone https://github.com/vlang/v.git "${pkg}/opt/v"
|
||||
pushd "${pkg}/opt/v"
|
||||
|
||||
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
|
||||
|
||||
main: "main.v"
|
||||
template: |
|
||||
fn main() {
|
||||
println('Hello, world!')
|
||||
println('Hello, world!')
|
||||
}
|
||||
|
||||
run: |
|
||||
|
|
Loading…
Reference in New Issue