From 6ed2ee6b0784f6f555b3a2e9e35766f6d7459980 Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 10 Nov 2023 18:20:12 +0100 Subject: [PATCH] +mailpit.axllent.org --- projects/mailpit.axllent.org/package.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/mailpit.axllent.org/package.yml diff --git a/projects/mailpit.axllent.org/package.yml b/projects/mailpit.axllent.org/package.yml new file mode 100644 index 00000000..d2598f3f --- /dev/null +++ b/projects/mailpit.axllent.org/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://github.com/axllent/mailpit/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: axllent/mailpit + strip: /^v/ + +build: + dependencies: + go.dev: ^1.20 + nodejs.org: ^18 + npmjs.com: "*" + script: | + npm install + npm run package + go build -ldflags="$LDFLAGS" -o mailpit + mkdir -p "{{ prefix }}"/bin + mv mailpit "{{ prefix }}"/bin + env: + CGO_ENABLED: 0 + LDFLAGS: + - -extldflags=-static + - -w + - -s + - -X=github.com/axllent/mailpit/config.Version=v{{version}} + +provides: + - bin/mailpit + +test: + dependencies: + gnu.org/grep: "*" + script: + mailpit version | grep "v{{version}}"