pantry/projects/schollz.com/croc/package.yml

33 lines
588 B
YAML
Raw Normal View History

distributable:
url: https://github.com/schollz/croc/archive/v{{version}}.tar.gz
strip-components: 1
2024-02-07 18:32:17 +03:00
versions:
github: schollz/croc
2024-02-07 18:32:17 +03:00
build:
dependencies:
go.dev: '*'
script:
2024-02-07 18:32:17 +03:00
- go build $ARGS -ldflags="$GO_LDFLAGS"
env:
ARGS:
- -trimpath
- -o={{prefix}}/bin/croc
2024-02-07 18:32:17 +03:00
GO_LDFLAGS:
- -s
- -w
- -X github.com/schollz/croc/v{{version.major}}/src/cli.Version={{version}}
linux:
ARGS:
- -asan
2024-02-07 18:32:17 +03:00
GO_LDFLAGS:
- -buildmode=pie
provides:
- bin/croc
2024-02-07 18:32:17 +03:00
test:
- croc --version
- croc --version | grep {{version}}