From e63e155e94ca6c016530302084319f7ef5fd56f2 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 1 Jul 2024 13:24:10 +0200 Subject: [PATCH] +crazymax.dev/diun --- projects/crazymax.dev/diun/package.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/crazymax.dev/diun/package.yml diff --git a/projects/crazymax.dev/diun/package.yml b/projects/crazymax.dev/diun/package.yml new file mode 100644 index 00000000..f7010790 --- /dev/null +++ b/projects/crazymax.dev/diun/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/crazy-max/diun/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +display-name: diun + +versions: + github: crazy-max/diun + +build: + dependencies: + go.dev: ^1.20 + env: + CGO_ENABLED: 0 + GO_LDFLAGS: + - -s + - -w + - -X main.version={{ version }} + linux: + GO_LDFLAGS: + - -buildmode=pie + ARGS: + - -v + script: + - go build $ARGS -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/diun ./cmd + +provides: + - bin/diun + +test: test "$(diun --version)" = {{ version }}