mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
4bfd421465
closes #6231
33 lines
591 B
YAML
33 lines
591 B
YAML
distributable:
|
|
url: https://github.com/schollz/croc/archive/{{version.tag}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: schollz/croc
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: '*'
|
|
script:
|
|
- go build $ARGS -ldflags="$GO_LDFLAGS"
|
|
env:
|
|
ARGS:
|
|
- -trimpath
|
|
- -o={{prefix}}/bin/croc
|
|
GO_LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X github.com/schollz/croc/v{{version.major}}/src/cli.Version={{version}}
|
|
linux:
|
|
ARGS:
|
|
- -asan
|
|
GO_LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
provides:
|
|
- bin/croc
|
|
|
|
test:
|
|
- croc --version
|
|
- croc --version | grep {{version}}
|