syncthing: fix cross compilation

This commit is contained in:
Duncaen 2015-08-23 15:36:40 +02:00
parent be7f19444f
commit c032f41f8d

View File

@ -1,7 +1,7 @@
# Template file for 'syncthing'
pkgname=syncthing
version=0.11.21
revision=1
revision=2
build_style=go
go_import_path="github.com/syncthing/syncthing"
short_desc="Open Source Continuous File Synchronization"
@ -19,15 +19,12 @@ do_build() {
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
mkdir tmp
TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade -version "v${version}"
TMPDIR=${PWD}/tmp/ go run build.go -goarch ${goarch} -no-upgrade -version "v${version}" build
rm -rf tmp
}
do_install() {
case "$XBPS_TARGET_MACHINE" in
arm*) vbin bin/linux_arm/syncthing;;
x86_64*|i686*) vbin bin/syncthing;;
esac
vbin syncthing
vlicense LICENSE
vdoc README.md
}