mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
parent
6d29e070d7
commit
676850a070
1 changed files with 29 additions and 0 deletions
29
projects/cointop.sh/package.yml
Normal file
29
projects/cointop.sh/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/cointop-sh/cointop/archive/refs/tags/v{{ version }}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: cointop-sh/cointop
|
||||||
|
strip: /^v/
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se/ca-certs: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.17
|
||||||
|
script: |
|
||||||
|
go build -ldflags="$LDFLAGS" -o "{{prefix}}/bin/cointop"
|
||||||
|
env:
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X github.com/cointop-sh/cointop/cointop.version={{version}}
|
||||||
|
linux/x86-64:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/cointop
|
||||||
|
|
||||||
|
test: cointop price -c Bitcoin
|
Loading…
Reference in a new issue