mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+digitalocean.com/doctl (#5544)
* new file: projects/digitalocean.com/doctl/package.yml * -buildmode is an ldflag --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
2eda80c939
commit
ed28de6dcd
1 changed files with 33 additions and 0 deletions
33
projects/digitalocean.com/doctl/package.yml
Normal file
33
projects/digitalocean.com/doctl/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
distributable:
|
||||
url: https://github.com/digitalocean/doctl/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: digitalocean/doctl
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
script:
|
||||
go build $ARGS -ldflags="$LDFLAGS" ./cmd/doctl
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/doctl
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/digitalocean/doctl.Major={{version.major}}
|
||||
- -X github.com/digitalocean/doctl.Minor={{version.minor}}
|
||||
- -X github.com/digitalocean/doctl.Patch={{version.patch}}
|
||||
- -X github.com/digitalocean/doctl.Label=release
|
||||
|
||||
provides:
|
||||
- bin/doctl
|
||||
|
||||
test:
|
||||
- doctl version | grep {{version}}
|
||||
- doctl help | grep 'doctl is a command line interface (CLI) for the DigitalOcean API'
|
Loading…
Reference in a new issue