otto: fix cross-compilation

This commit is contained in:
Dominik Honnef 2016-04-13 13:49:24 +02:00
parent 1633070248
commit e1b40c13f0

View file

@ -17,13 +17,13 @@ do_build() {
mkdir -p "$(dirname ${path})" mkdir -p "$(dirname ${path})"
ln -fs $PWD "${path}" ln -fs $PWD "${path}"
cd "$GOPATH/src/$go_import_path" cd "$GOPATH/src/$go_import_path"
make updatedeps GOOS= GOARCH= GOARM= make updatedeps
PATH=$GOPATH/bin:$PATH make generate PATH=$GOPATH/bin:$PATH make generate
go install go install
} }
post_install() { post_install() {
rm $DESTDIR/usr/bin/{go-bindata,gox,stringer} rm $DESTDIR/usr/bin/{go-bindata,gox,stringer}
vlicense LICENSE vlicense LICENSE
} }