# Template file for 'syncthing' pkgname=syncthing version=0.12.12 revision=1 build_style=go go_import_path="github.com/syncthing/syncthing" 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=66de227e66f615e5b72b021f61f5c98f46f94a1152f8742cbe614b4a35556814 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 } do_install() { vbin syncthing vlicense LICENSE vdoc README.md }