aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.build
blob: e7cf9837620a84b6916daa713aa065a3ff2c9e3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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
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
make install


mv ${SRCDIR}/bin ${DESTDIR}/go