Merge pull request #784 from Duncaen/syncthing
syncthing: disable cgo to fix cross compiling
This commit is contained in:
commit
11c9b4693d
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'syncthing'
|
# Template file for 'syncthing'
|
||||||
pkgname=syncthing
|
pkgname=syncthing
|
||||||
version=0.10.13
|
version=0.10.13
|
||||||
revision=2
|
revision=3
|
||||||
hostmakedepends="go>=1.3"
|
hostmakedepends="go>=1.3"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" go-cross-linux"
|
hostmakedepends+=" go-cross-linux"
|
||||||
|
@ -22,11 +22,12 @@ do_build() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export GOPATH="${PWD}/gopath"
|
export GOPATH="${PWD}/gopath"
|
||||||
|
export CGO_ENABLED=0
|
||||||
mkdir -p $GOPATH/src/github.com/syncthing
|
mkdir -p $GOPATH/src/github.com/syncthing
|
||||||
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
||||||
|
|
||||||
mkdir tmp
|
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
|
rm -rf tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue