2023-07-16 00:56:55 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/schollz/croc/archive/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2024-02-07 18:32:17 +03:00
|
|
|
|
2023-07-16 00:56:55 +03:00
|
|
|
versions:
|
|
|
|
github: schollz/croc
|
2024-02-07 18:32:17 +03:00
|
|
|
|
2023-07-16 00:56:55 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: '*'
|
|
|
|
script:
|
2024-02-07 18:32:17 +03:00
|
|
|
- go build $ARGS -ldflags="$GO_LDFLAGS"
|
2023-07-16 00:56:55 +03:00
|
|
|
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}}
|
2023-07-16 00:56:55 +03:00
|
|
|
linux:
|
|
|
|
ARGS:
|
|
|
|
- -asan
|
2024-02-07 18:32:17 +03:00
|
|
|
GO_LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
2023-07-16 00:56:55 +03:00
|
|
|
provides:
|
|
|
|
- bin/croc
|
2024-02-07 18:32:17 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
- croc --version
|
|
|
|
- croc --version | grep {{version}}
|