aboutsummaryrefslogtreecommitdiff
path: root/community/syncthing/build
diff options
context:
space:
mode:
Diffstat (limited to 'community/syncthing/build')
-rwxr-xr-xcommunity/syncthing/build11
1 files changed, 5 insertions, 6 deletions
diff --git a/community/syncthing/build b/community/syncthing/build
index 51a2e6f5..a4bd983e 100755
--- a/community/syncthing/build
+++ b/community/syncthing/build
@@ -1,13 +1,12 @@
#!/bin/sh -e
-export GOPATH=$PWD/gopath
+export GOPATH="$PWD/gopath"
+export GOFLAGS="$GOFLAGS -mod=vendor"
trap "go clean -modcache" EXIT INT
-go mod vendor
go run build.go -no-upgrade -version "v$2" build
-install -Dm755 syncthing "$1/usr/bin/syncthing"
+clinst -Dm755 syncthing "$1/usr/bin/syncthing"
-for manpage in man/*.1 man/*.5 man/*.7; do
- install -Dm644 "$manpage" "$1/usr/share/man/man${manpage##*.}/${manpage##*/}"
-done
+# Install manual pages.
+clman -d "$1" man/*.[0-9]