diff --git a/srcpkgs/syncthing/template b/srcpkgs/syncthing/template index 30d4f16c15..889a304507 100644 --- a/srcpkgs/syncthing/template +++ b/srcpkgs/syncthing/template @@ -1,30 +1,24 @@ # Template file for 'syncthing' pkgname=syncthing -version=0.13.0 +version=0.13.1 revision=1 build_style=go go_import_path="github.com/syncthing/syncthing" +go_package="${go_import_path}/cmd/syncthing" +go_build_tags="noupgrade" +go_ldflags="-X main.Version v${version}" short_desc="Open Source Continuous File Synchronization" maintainer="Duncaen " license="MPLv2" homepage="http://syncthing.net/" distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz" -checksum=5ef08bf656e9e03acbe24ac235bf3f99853798a032739293b472ab2f010041c4 +checksum=5ff881a1d96915a997b01adce98b5189408656dec228214f631efe82d35a83ea -do_build() { - goarch="${GOARCH}" - unset GOARCH - 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 -goarch ${goarch} -no-upgrade -version "v${version}" build - rm -rf tmp +pre_build() { + GOARCH= go run script/genassets.go gui > ./lib/auto/gui.files.go } -do_install() { - vbin syncthing +post_install() { vlicense LICENSE vdoc README.md }