From e1b40c13f0b749905926a8a79257d57b00a66e6f Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Wed, 13 Apr 2016 13:49:24 +0200 Subject: [PATCH] otto: fix cross-compilation --- srcpkgs/otto/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/otto/template b/srcpkgs/otto/template index 2abc2a4d731..c315e1d80fa 100644 --- a/srcpkgs/otto/template +++ b/srcpkgs/otto/template @@ -17,13 +17,13 @@ do_build() { mkdir -p "$(dirname ${path})" ln -fs $PWD "${path}" - cd "$GOPATH/src/$go_import_path" - make updatedeps - PATH=$GOPATH/bin:$PATH make generate - go install + cd "$GOPATH/src/$go_import_path" + GOOS= GOARCH= GOARM= make updatedeps + PATH=$GOPATH/bin:$PATH make generate + go install } post_install() { - rm $DESTDIR/usr/bin/{go-bindata,gox,stringer} + rm $DESTDIR/usr/bin/{go-bindata,gox,stringer} vlicense LICENSE }