aboutsummaryrefslogtreecommitdiff
path: root/community/syncthing/build
blob: 51a2e6f57964ad08e401220d68cd6b0e585a7661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

export GOPATH=$PWD/gopath
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"

for manpage in man/*.1 man/*.5 man/*.7; do
    install -Dm644 "$manpage" "$1/usr/share/man/man${manpage##*.}/${manpage##*/}"
done