syncthing: install sysctl file, only test and generate meaningful stuff

This commit is contained in:
dkwo 2024-11-06 15:32:56 -05:00 committed by Duncan Overbruck
parent 8e2e4a66ee
commit cf6fc5faeb

View file

@ -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 <duncaen@voidlinux.org>"
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