From 7eec4f5a5b7d45b28bef4d8e57105c6a94a0f184 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 24 Oct 2023 01:44:48 +0300 Subject: [PATCH] github.com/axllent/mailpit (#3796) * new file: projects/github.com/axllent/mailpit/package.yml * . * . * . * node<21 * oh... --- .../github.com/axllent/mailpit/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/axllent/mailpit/package.yml diff --git a/projects/github.com/axllent/mailpit/package.yml b/projects/github.com/axllent/mailpit/package.yml new file mode 100644 index 00000000..c29f3fb6 --- /dev/null +++ b/projects/github.com/axllent/mailpit/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/axllent/mailpit/archive/v{{version}}.tar.gz + strip-components: 1 +versions: + github: axllent/mailpit +build: + dependencies: + nodejs.org: <21 + npmjs.com: '*' + go.dev: '*' + script: + - npm install + - npm run build + - go build $GO_ARGS -ldflags="$LD_FLAGS" + env: + GO_ARGS: + - -trimpath + - -o={{prefix}}/bin/mailpit + linux: + GO_ARGS: + - -buildmode=pie + LD_FLAGS: + - -s + - -w + - -X github.com/axllent/mailpit/config.Version={{version}} +provides: + - bin/mailpit +test: + script: + - mailpit version | grep {{version}} \ No newline at end of file