From 0d2cdc6256e8c485b4262e96f679fc94d653c6ef Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 26 Jan 2024 13:44:04 +0100 Subject: [PATCH] +github.com/skx/marionette --- .../github.com/skx/marionette/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/skx/marionette/package.yml diff --git a/projects/github.com/skx/marionette/package.yml b/projects/github.com/skx/marionette/package.yml new file mode 100644 index 00000000..78738fda --- /dev/null +++ b/projects/github.com/skx/marionette/package.yml @@ -0,0 +1,30 @@ +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}}