Add 'stripe-cli/' from commit 'bfc3276044b9310ebeac0aa244e2afd01d2c0a90'
git-subtree-dir: stripe-cli git-subtree-mainline:47885a3f95
git-subtree-split:bfc3276044
This commit is contained in:
16
stripe-cli/.SRCINFO
Normal file
16
stripe-cli/.SRCINFO
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
pkgbase = stripe-cli
|
||||||
|
pkgdesc = CLI for Stripe
|
||||||
|
pkgver = 1.8.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://stripe.com/docs/stripe-cli
|
||||||
|
arch = x86_64
|
||||||
|
license = Apache
|
||||||
|
makedepends = go
|
||||||
|
makedepends = git
|
||||||
|
depends = glibc
|
||||||
|
source = stripe-cli-1.8.1.tar.gz::https://github.com/stripe/stripe-cli/archive/v1.8.1.tar.gz
|
||||||
|
source = reproducible-image-flags.patch
|
||||||
|
sha512sums = 110a93a4c9b4e16843cbdfb5942000b2d7eda35d063c0bdb53af390acb08ecfb5c4c5ed7aa0c2486e1e4614bfa044dc22413aa3c682e716aa64595145e6954c4
|
||||||
|
sha512sums = 4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37
|
||||||
|
|
||||||
|
pkgname = stripe-cli
|
6
stripe-cli/.gitignore
vendored
Normal file
6
stripe-cli/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
pkg/
|
||||||
|
src/
|
||||||
|
*.tar
|
||||||
|
*.tar.gz
|
||||||
|
*.tar.xz
|
||||||
|
*.tar.zstd
|
45
stripe-cli/PKGBUILD
Normal file
45
stripe-cli/PKGBUILD
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# Maintainer: ny-a <nyaarch64@gmail..com>
|
||||||
|
# Contributor: Jean Lucas <jean@4ray.co>
|
||||||
|
# Contributor: Sam Whited <sam@samwhited.com>
|
||||||
|
|
||||||
|
pkgname=stripe-cli
|
||||||
|
pkgver=1.8.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='CLI for Stripe'
|
||||||
|
arch=(x86_64)
|
||||||
|
url=https://stripe.com/docs/stripe-cli
|
||||||
|
license=(Apache)
|
||||||
|
depends=(glibc)
|
||||||
|
makedepends=(go git)
|
||||||
|
source=(
|
||||||
|
$pkgname-$pkgver.tar.gz::https://github.com/stripe/stripe-cli/archive/v$pkgver.tar.gz
|
||||||
|
reproducible-image-flags.patch
|
||||||
|
)
|
||||||
|
sha512sums=('110a93a4c9b4e16843cbdfb5942000b2d7eda35d063c0bdb53af390acb08ecfb5c4c5ed7aa0c2486e1e4614bfa044dc22413aa3c682e716aa64595145e6954c4'
|
||||||
|
'4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
|
||||||
|
# Add reproducible image flags
|
||||||
|
patch -Np0 < ../reproducible-image-flags.patch
|
||||||
|
|
||||||
|
make setup
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
make build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
install -D stripe -t "$pkgdir"/usr/bin
|
||||||
|
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
||||||
|
cp -a docs "$pkgdir"/usr/share/doc/$pkgname
|
||||||
|
}
|
16
stripe-cli/reproducible-image-flags.patch
Normal file
16
stripe-cli/reproducible-image-flags.patch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
--- Makefile 2019-11-05 13:19:33.405968540 -0500
|
||||||
|
+++ Makefile 2019-11-05 13:20:38.358685158 -0500
|
||||||
|
@@ -55,7 +55,12 @@
|
||||||
|
# Build a beta version of stripe
|
||||||
|
build:
|
||||||
|
go generate ./...
|
||||||
|
- go build -o stripe cmd/stripe/main.go
|
||||||
|
+ go build \
|
||||||
|
+ -buildmode pie \
|
||||||
|
+ -ldflags "-extldflags $(LDFLAGS)" \
|
||||||
|
+ -trimpath \
|
||||||
|
+ -o stripe \
|
||||||
|
+ cmd/stripe/main.go
|
||||||
|
.PHONY: build
|
||||||
|
|
||||||
|
build-dev:
|
Reference in New Issue
Block a user