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

33 lines
591 B
YAML
Raw Normal View History

distributable:
2024-05-25 19:54:04 +03:00
url: https://github.com/schollz/croc/archive/{{version.tag}}.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}}