create GOPATH in wrksrc

This commit is contained in:
Dominik Honnef 2015-02-21 13:58:46 +01:00
parent bd75088422
commit 92c77a10ec

View File

@ -10,7 +10,7 @@ do_build() {
x86_64*) export GOARCH=amd64;;
esac
export GOPATH="/tmp/gopath"
export GOPATH="$(mktemp -d --tmpdir="${wrksrc}")"
if [[ "${go_get}" != "yes" ]]; then
local path="${GOPATH}/src/${go_import_path}"
@ -25,7 +25,3 @@ do_build() {
do_install() {
vbin ${pkgname}
}
do_clean() {
rm -rf /tmp/gopath
}