syncthing: disable cgo to fix cross compiling

This commit is contained in:
Duncan Overbruck 2014-12-28 18:07:05 +01:00
parent ad0bc8d401
commit 4b3c1d9bf6

View file

@ -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
}