Skip to content

Commit

Permalink
Added stripe-cli at v1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mortyr45 authored Nov 15, 2023
1 parent faa436b commit 78755fd
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ min|[Archlinux AUR](https://aur.archlinux.org/packages/min)|A fast, minimal brow
mozc|[Archlinux AUR](https://aur.archlinux.org/packages/mozc)|Japanese input.
openvpn-update-systemd-resolved|[Archlinux AUR](https://aur.archlinux.org/packages/openvpn-update-systemd-resolved)|OpenVPN systemd-resolved Updater.
rkdeveloptool|[Archlinux AUR](https://aur.archlinux.org/packages/rkdeveloptool)|Development tool for Rockchip SOC.
stripe-cli|[Archlinux AUR](https://aur.archlinux.org/packages/stripe-cli)|CLI for Stripe.
teamviewer|[Archlinux AUR](https://aur.archlinux.org/packages/teamviewer)|All-In-One Software for Remote Support and Online Meetings.
ttf-ms-fonts|[Archlinux AUR](https://aur.archlinux.org/packages/ttf-ms-fonts)|Core TTF Fonts from Microsoft.
tufw|Own|Terminal UI for ufw.
Expand Down
3 changes: 2 additions & 1 deletion build_orders/_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gnome-shell-extension-material-shell
visual-studio-code-bin
mozc
ibus-mozc
stripe-cli
min
rkdeveloptool
cpu-x
Expand All @@ -16,4 +17,4 @@ teamviewer
defold
liblcf
easyrpg-player
ani-cli
ani-cli
52 changes: 52 additions & 0 deletions packages/stripe-cli/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Maintainer: tarball <bootctl@gmail.com>
# Contributor: Giovanni Harting <539@idlegandalf.com>
# Contributor: ny-a <nyaarch64@gmail..com>
# Contributor: Jean Lucas <jean@4ray.co>
# Contributor: Sam Whited <sam@samwhited.com>

pkgname=stripe-cli
pkgver=1.18.0
pkgrel=1
pkgdesc='CLI for Stripe'
arch=(i686 x86_64 aarch64)
url=https://github.com/stripe/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)
b2sums=('500b56638d464f1f27d68c9cd0d113505c7bdc03b96e4f4b40c318f18fc8ca2abf83ee9c564752c5d1c8341e6ae62b875294e0f3ff94bc20453cbcb6ad3d9f14')

prepare() {
cd $pkgname-$pkgver
go mod download
}

build() {
cd $pkgname-$pkgver

go generate ./...

go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -X github.com/stripe/stripe-cli/pkg/version.Version=$pkgver -extldflags \"${LDFLAGS}\"" \
-o stripe \
cmd/stripe/main.go
}

check() {
cd $pkgname-$pkgver
[[ "$(./stripe --version)" == "stripe version $pkgver" ]]

# Tests are disabled until https://github.com/stripe/stripe-cli/issues/1020 is resolved
#go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -run . -timeout=2m
}

package() {
cd $pkgname-$pkgver
install -D stripe -t "$pkgdir"/usr/bin
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
cp -a docs "$pkgdir"/usr/share/doc/$pkgname
}

0 comments on commit 78755fd

Please sign in to comment.