create GOPATH in wrksrc
This commit is contained in:
parent
bd75088422
commit
92c77a10ec
1 changed files with 1 additions and 5 deletions
|
@ -10,7 +10,7 @@ do_build() {
|
||||||
x86_64*) export GOARCH=amd64;;
|
x86_64*) export GOARCH=amd64;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export GOPATH="/tmp/gopath"
|
export GOPATH="$(mktemp -d --tmpdir="${wrksrc}")"
|
||||||
|
|
||||||
if [[ "${go_get}" != "yes" ]]; then
|
if [[ "${go_get}" != "yes" ]]; then
|
||||||
local path="${GOPATH}/src/${go_import_path}"
|
local path="${GOPATH}/src/${go_import_path}"
|
||||||
|
@ -25,7 +25,3 @@ do_build() {
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin ${pkgname}
|
vbin ${pkgname}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_clean() {
|
|
||||||
rm -rf /tmp/gopath
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue