upgpkg: stripe-cli 1.12.3-1
upstream release
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
pkgbase = stripe-cli
|
pkgbase = stripe-cli
|
||||||
pkgdesc = CLI for Stripe
|
pkgdesc = CLI for Stripe
|
||||||
pkgver = 1.8.1
|
pkgver = 1.12.3
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://stripe.com/docs/stripe-cli
|
url = https://github.com/stripe/stripe-cli
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = Apache
|
license = Apache
|
||||||
makedepends = go
|
makedepends = go
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = glibc
|
depends = glibc
|
||||||
source = stripe-cli-1.8.1.tar.gz::https://github.com/stripe/stripe-cli/archive/v1.8.1.tar.gz
|
source = stripe-cli-1.12.3.tar.gz::https://github.com/stripe/stripe-cli/archive/v1.12.3.tar.gz
|
||||||
source = reproducible-image-flags.patch
|
b2sums = 1239b8ede1fadf3519c3177b638845fe21dab3ca5bbc620ff82d62def1dc6b083e5b6c94643190c5edf690df4352ea62c69fd4e7754a2bc0eeb75888b3832ee0
|
||||||
sha512sums = 110a93a4c9b4e16843cbdfb5942000b2d7eda35d063c0bdb53af390acb08ecfb5c4c5ed7aa0c2486e1e4614bfa044dc22413aa3c682e716aa64595145e6954c4
|
|
||||||
sha512sums = 4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37
|
|
||||||
|
|
||||||
pkgname = stripe-cli
|
pkgname = stripe-cli
|
||||||
|
@@ -1,45 +1,49 @@
|
|||||||
# Maintainer: ny-a <nyaarch64@gmail..com>
|
# Maintainer: Giovanni Harting <539@idlegandalf.com>
|
||||||
|
# Contributor: ny-a <nyaarch64@gmail..com>
|
||||||
# Contributor: Jean Lucas <jean@4ray.co>
|
# Contributor: Jean Lucas <jean@4ray.co>
|
||||||
# Contributor: Sam Whited <sam@samwhited.com>
|
# Contributor: Sam Whited <sam@samwhited.com>
|
||||||
|
|
||||||
pkgname=stripe-cli
|
pkgname=stripe-cli
|
||||||
pkgver=1.8.1
|
pkgver=1.12.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='CLI for Stripe'
|
pkgdesc='CLI for Stripe'
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url=https://stripe.com/docs/stripe-cli
|
url=https://github.com/stripe/stripe-cli
|
||||||
license=(Apache)
|
license=(Apache)
|
||||||
depends=(glibc)
|
depends=(glibc)
|
||||||
makedepends=(go git)
|
makedepends=(go git)
|
||||||
source=(
|
source=($pkgname-$pkgver.tar.gz::https://github.com/stripe/stripe-cli/archive/v$pkgver.tar.gz)
|
||||||
$pkgname-$pkgver.tar.gz::https://github.com/stripe/stripe-cli/archive/v$pkgver.tar.gz
|
b2sums=('1239b8ede1fadf3519c3177b638845fe21dab3ca5bbc620ff82d62def1dc6b083e5b6c94643190c5edf690df4352ea62c69fd4e7754a2bc0eeb75888b3832ee0')
|
||||||
reproducible-image-flags.patch
|
|
||||||
)
|
|
||||||
sha512sums=('110a93a4c9b4e16843cbdfb5942000b2d7eda35d063c0bdb53af390acb08ecfb5c4c5ed7aa0c2486e1e4614bfa044dc22413aa3c682e716aa64595145e6954c4'
|
|
||||||
'4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
|
go mod download
|
||||||
# Add reproducible image flags
|
|
||||||
patch -Np0 < ../reproducible-image-flags.patch
|
|
||||||
|
|
||||||
make setup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
make build
|
|
||||||
|
go generate ./...
|
||||||
|
|
||||||
|
go build \
|
||||||
|
-trimpath \
|
||||||
|
-buildmode=pie \
|
||||||
|
-mod=readonly \
|
||||||
|
-modcacherw \
|
||||||
|
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
|
||||||
|
-o stripe \
|
||||||
|
cmd/stripe/main.go
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
make test
|
go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -run . -timeout=2m
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
install -D stripe -t "$pkgdir"/usr/bin
|
install -D stripe -t "$pkgdir"/usr/bin
|
||||||
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
||||||
|
install -Dm644 stripe-completion.bash "$pkgdir"/usr/share/bash-completion/completions/stripe
|
||||||
cp -a docs "$pkgdir"/usr/share/doc/$pkgname
|
cp -a docs "$pkgdir"/usr/share/doc/$pkgname
|
||||||
}
|
}
|
||||||
|
@@ -1,16 +0,0 @@
|
|||||||
--- 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