43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'syncthing'
|
|
pkgname=syncthing
|
|
version=0.13.10
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/syncthing/syncthing"
|
|
go_package="${go_import_path}/cmd/relaysrv ${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 <duncaen@voidlinux.eu>"
|
|
license="MPLv2"
|
|
homepage="http://syncthing.net/"
|
|
distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=a86c7948afabc6e7b07f217d5200fb1e36cde5bb13373d99cc67d5dc991ce3be
|
|
|
|
pre_build() {
|
|
GOARCH= go run script/genassets.go gui > ./lib/auto/gui.files.go
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
}
|
|
|
|
syncthing-relaysrv_package() {
|
|
short_desc+="- relay server"
|
|
license="MIT"
|
|
replaces="relaysrv>=0.12.18_2"
|
|
provides="relaysrv-${version}_${revision}"
|
|
system_accounts="relaysrv"
|
|
relaysrv_homedir="/var/lib/relaysrv"
|
|
|
|
make_dirs="
|
|
/var/log/relaysrv 700 root root
|
|
/var/lib/relaysrv 700 relaysrv relaysrv"
|
|
|
|
pkg_install() {
|
|
vmove usr/bin/relaysrv
|
|
vlicense cmd/relaysrv/LICENSE
|
|
vsv relaysrv
|
|
}
|
|
}
|