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

export GOPATH="$PWD/gopath"
export GOFLAGS="$GOFLAGS -mod=vendor"
trap "go clean -modcache" EXIT INT

patch -p1 < go-1.19.patch

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]