mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
c9f6adaff7
* +ctop * better test, copied make file steps * GO_LDFLAGS * review feedback * review comments * move to ctop.sh * rename * small style fixes --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
32 lines
617 B
YAML
32 lines
617 B
YAML
distributable:
|
|
url: https://github.com/bcicen/ctop/archive/refs/tags/{{ version.tag }}.tar.gz
|
|
strip-components: 1
|
|
|
|
display-name: ctop
|
|
|
|
versions:
|
|
github: bcicen/ctop
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ~1.18
|
|
|
|
script:
|
|
- go mod download
|
|
- go build -tags release -ldflags="$GO_LDFLAGS" -o "{{prefix}}/bin/ctop"
|
|
env:
|
|
GO_LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X main.version={{version}}
|
|
- -X main.build=pkgx
|
|
linux:
|
|
GO_LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
provides:
|
|
- bin/ctop
|
|
|
|
# comma is intentional (part of the awk slice)
|
|
test: test "$(ctop -v | awk '{print $3}')" = "{{version}},"
|