aboutsummaryrefslogtreecommitdiff
path: root/community/syncthing/build
blob: 1a4353f499e022ac9da4a7269af37994adc7da6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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

clinst -Dm755 syncthing "$1/usr/bin/syncthing"

# Install manual pages.
clman -d "$1" man/*.[0-9]