mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
49ef0d0d08
commit
af1398f73c
31
projects/stripe.com/package.yml
Normal file
31
projects/stripe.com/package.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
distributable:
|
||||
url: https://github.com/stripe/stripe-cli/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: stripe/stripe-cli
|
||||
|
||||
provides:
|
||||
- bin/stripe
|
||||
|
||||
build:
|
||||
script: |
|
||||
make setup
|
||||
go build -v -ldflags="$LDFLAGS" -o stripe cmd/stripe/main.go
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
mv stripe "{{ prefix }}"/bin
|
||||
dependencies:
|
||||
go.dev: ^1.19
|
||||
tea.xyz/gx/make: '*'
|
||||
|
||||
env:
|
||||
LDFLAGS:
|
||||
[-s, -w, "-X=main.Version={{ version }}", "-X=github.com/stripe/stripe-cli/pkg/version.Version={{ version }}"]
|
||||
linux:
|
||||
# or segmentation fault
|
||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
test: |
|
||||
test "$(stripe --version)" == "stripe version {{version}}"
|
Loading…
Reference in a new issue