From 5f5abc773c48875124c34fa6dab995e24cc6a2d0 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 26 Jan 2024 15:38:28 +0100 Subject: [PATCH] +github.com/adnanh/webhook --- .../github.com/adnanh/webhook/package.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/github.com/adnanh/webhook/package.yml diff --git a/projects/github.com/adnanh/webhook/package.yml b/projects/github.com/adnanh/webhook/package.yml new file mode 100644 index 00000000..dc1eeb2c --- /dev/null +++ b/projects/github.com/adnanh/webhook/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/adnanh/webhook/archive/refs/tags/{{version}}.tar.gz + strip-components: 1 + +display-name: webhook + +versions: + github: adnanh/webhook + +build: + dependencies: + go.dev: ^1.21 + env: + CGO_ENABLED: 1 + LDFLAGS: + - -s + - -w + linux: + LDFLAGS: + - -buildmode=pie + script: go build -v -ldflags="${LDFLAGS}" -o {{prefix}}/bin/webhook + +provides: +- bin/webhook + +test: test "$(webhook --version| cut -d' ' -f 3)" = {{version}}