pantry/projects/github.com/skx/marionette/package.yml
2024-01-26 10:37:51 -05:00

31 lines
547 B
YAML

distributable:
url: https://github.com/skx/marionette/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
display-name: marionette
versions:
github: skx/marionette
strip:
- /^v/
build:
dependencies:
go.dev: '*'
env:
CGO_ENABLED: 0
LDFLAGS:
- -s
- -w
- -X main.version={{version}}
linux:
LDFLAGS:
- -buildmode=pie
script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/marionette
provides:
- bin/marionette
test: test "$(marionette -version|head -1)" = {{version}}