mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+crazymax.dev/diun
This commit is contained in:
parent
add5c7a24d
commit
e63e155e94
1 changed files with 30 additions and 0 deletions
30
projects/crazymax.dev/diun/package.yml
Normal file
30
projects/crazymax.dev/diun/package.yml
Normal file
|
@ -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 }}
|
Loading…
Reference in a new issue