mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+mactop
@magnusviri
This commit is contained in:
parent
4272cc5d93
commit
6f08075abe
32
projects/github.com/context-labs/mactop/package.yml
Normal file
32
projects/github.com/context-labs/mactop/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
distributable:
|
||||
url: https://github.com/context-labs/mactop/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: context-labs/mactop
|
||||
|
||||
platforms:
|
||||
- darwin/aarch64
|
||||
|
||||
provides:
|
||||
- bin/mactop
|
||||
|
||||
warnings:
|
||||
- sudo-required
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.20
|
||||
script:
|
||||
- go mod download
|
||||
- go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC .
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org,direct
|
||||
GOSUMDB: sum.golang.org
|
||||
GO111MODULE: on
|
||||
BUILDLOC: '{{prefix}}/bin/mactop'
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
|
||||
test: 'test "$(mactop --version)" = "mactop version: v{{version}}"'
|
Loading…
Reference in a new issue