aboutsummaryrefslogtreecommitdiff
path: root/community/hugo/build
blob: 549e29add7d31d64dcd52887244c2bdbf1b1f4c7 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh -e

export GOPATH=$PWD/gopath

trap "go clean -modcache" EXIT INT
go mod vendor

CGO_ENABLED=0 go build
install -Dm755 hugo "$1/usr/bin/hugo"