mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+mailpit.axllent.org
This commit is contained in:
parent
3bbb8dc4e0
commit
6ed2ee6b07
35
projects/mailpit.axllent.org/package.yml
Normal file
35
projects/mailpit.axllent.org/package.yml
Normal file
|
@ -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}}"
|
Loading…
Reference in a new issue