otto: fix cross-compilation
This commit is contained in:
parent
1633070248
commit
e1b40c13f0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue