From c032f41f8d78a912d7f4b14d955985384ac54e18 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 23 Aug 2015 15:36:40 +0200 Subject: [PATCH] syncthing: fix cross compilation --- srcpkgs/syncthing/template | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/srcpkgs/syncthing/template b/srcpkgs/syncthing/template index 81ab8dc554d..33e7437814c 100644 --- a/srcpkgs/syncthing/template +++ b/srcpkgs/syncthing/template @@ -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 }