diff --git a/srcpkgs/syncthing/template b/srcpkgs/syncthing/template index efea121b99c..fe4f31c502f 100644 --- a/srcpkgs/syncthing/template +++ b/srcpkgs/syncthing/template @@ -1,15 +1,19 @@ # Template file for 'syncthing' pkgname=syncthing version=1.29.2 -revision=1 +revision=2 build_style=go go_import_path="github.com/syncthing/syncthing" go_package=" ${go_import_path}/cmd/stdiscosrv ${go_import_path}/cmd/strelaysrv ${go_import_path}/cmd/syncthing" -go_build_tags="noupgrade" +go_build_tags="-no-upgrade" go_ldflags="-X github.com/syncthing/syncthing/lib/build.Version=v${version}" +make_check_target="./lib/... + ./cmd/stdiscosrv + ./cmd/strelaysrv + ./cmd/syncthing" short_desc="Open Source Continuous File Synchronization" maintainer="Duncaen " license="MPL-2.0" @@ -19,15 +23,14 @@ distfiles="https://github.com/syncthing/syncthing/archive/v${version}.tar.gz" checksum=6446e52cb5ca6584710c3abd9250e0d9708486d2dc2264f7c869ade169876a57 pre_build() { - GOARCH= go generate \ - github.com/syncthing/syncthing/lib/api/auto \ - github.com/syncthing/syncthing/cmd/infra/strelaypoolsrv/auto + GOARCH= go generate github.com/syncthing/syncthing/lib/api/auto } post_install() { vinstall etc/firewall-ufw/syncthing 644 etc/ufw/applications.d vinstall etc/linux-desktop/syncthing-start.desktop 664 usr/share/applications vinstall etc/linux-desktop/syncthing-ui.desktop 644 usr/share/applications + vinstall etc/linux-sysctl/30-syncthing.conf 644 usr/lib/sysctl.d vlicense LICENSE vdoc README.md for f in man/syncthing*; do vman $f; done