syncthing: disable cgo to fix cross compiling
This commit is contained in:
parent
ad0bc8d401
commit
4b3c1d9bf6
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'syncthing'
|
||||
pkgname=syncthing
|
||||
version=0.10.13
|
||||
revision=2
|
||||
revision=3
|
||||
hostmakedepends="go>=1.3"
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" go-cross-linux"
|
||||
|
@ -22,11 +22,12 @@ do_build() {
|
|||
esac
|
||||
|
||||
export GOPATH="${PWD}/gopath"
|
||||
export CGO_ENABLED=0
|
||||
mkdir -p $GOPATH/src/github.com/syncthing
|
||||
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
||||
|
||||
mkdir tmp
|
||||
TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade
|
||||
TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade -version "v${version}"
|
||||
rm -rf tmp
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue