aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.build
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2020-01-27 09:02:14 +0100
committerDennis Eriksen <d@ennis.no>2020-01-27 09:02:14 +0100
commitccb35625442e4455b3cfbe7b2fd72ac49ba47c56 (patch)
tree502ea4da1d596f05e4f39e9ddfc0ccc2359cd68f /mkosi.build
parentnot everyone has lsb_release (diff)
downloadmkosi-filebin-ccb35625442e4455b3cfbe7b2fd72ac49ba47c56.tar.gz
latest version of filebin requires go1.13, which is newer than what ubuntu ships with
Diffstat (limited to 'mkosi.build')
-rwxr-xr-xmkosi.build11
1 files changed, 9 insertions, 2 deletions
diff --git a/mkosi.build b/mkosi.build
index 1956aa9..e7cf983 100755
--- a/mkosi.build
+++ b/mkosi.build
@@ -1,9 +1,16 @@
#!/bin/sh
+export GOVER='1.13.6'
+export GOPATH="${SRCDIR}"
+export PATH="${PATH}:/usr/local/go/bin:${GOPATH}/bin"
+
+
cd $SRCDIR
mkdir src bin pkg
-export GOPATH="${SRCDIR}"
-export PATH="${PATH}:${GOPATH}/bin"
+wget "https://dl.google.com/go/go${GOVER}.linux-amd64.tar.gz"
+tar -C /usr/local -xzf "go${GOVER}.linux-amd64.tar.gz"
+rm "go${GOVER}.linux-amd64.tar.gz"
+go version
go get -d github.com/espebra/filebin
cd ${GOPATH}/src/github.com/espebra/filebin
make get-deps