From a67009d8791dd5846a9296a757f2ead402a62781 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Wed, 22 Dec 2021 13:05:55 -0800 Subject: [PATCH] Get things working --- langs/v.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/langs/v.yaml b/langs/v.yaml index 6a9ff01..a8c1b11 100644 --- a/langs/v.yaml +++ b/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: |