pantry/projects/github.com/pressly/sup/package.yml
2024-01-21 05:02:00 -05:00

31 lines
466 B
YAML

distributable:
url: https://github.com/pressly/sup/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: pressly/sup
strip:
- /^v/
build:
dependencies:
go.dev: "1.16"
env:
GO_ARGS:
- -o "{{prefix}}/bin/"
LD_FLAGS:
- -s
- -w
linux:
CGO_ENABLED: 0
script:
- go mod init
- go mod vendor
- go build ${GO_ARGS} -ldflags="$LD_FLAGS" ./cmd/sup
provides:
- bin/sup
test: sup --help