Orhun Parmaksız pushed to branch main at Arch Linux / Packaging / Packages / 
jwt-cli


Commits:
e99863d5 by Orhun Parmaksız at 2024-05-27T12:50:29+03:00
upgpkg: 6.1.0-1: upstream release

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,14 @@
+pkgbase = jwt-cli
+       pkgdesc = A super fast CLI tool to decode and encode JWTs
+       pkgver = 6.1.0
+       pkgrel = 1
+       url = https://github.com/mike-engel/jwt-cli
+       arch = x86_64
+       license = MIT
+       makedepends = cargo
+       depends = gcc-libs
+       options = !lto
+       source = 
jwt-cli-6.1.0.tar.gz::https://github.com/mike-engel/jwt-cli/archive/6.1.0.tar.gz
+       sha512sums = 
5a9622ad4a1a7b153b96a3b7390179496a084875ebb4e2400502e1351b6f218b879ea7e114f9a8953a4ea51b8047edb9ab56ce71910428f5256932cfb9878a41
+
+pkgname = jwt-cli


=====================================
PKGBUILD
=====================================
@@ -1,7 +1,8 @@
 # Maintainer: Orhun Parmaksız <or...@archlinux.org>
 
 pkgname=jwt-cli
-pkgver=6.0.0
+_pkgname=jwt
+pkgver=6.1.0
 pkgrel=1
 pkgdesc="A super fast CLI tool to decode and encode JWTs"
 arch=('x86_64')
@@ -10,17 +11,23 @@ license=('MIT')
 depends=('gcc-libs')
 makedepends=('cargo')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('2d0b7dfd98bc16448d1bd67763d7deea4be6ad5069134deacf6a3dcd5c64cf88f7b01fe09bdb03fc80845889706e3e172755b054f349a4c0141adafcd4458943')
+sha512sums=('5a9622ad4a1a7b153b96a3b7390179496a084875ebb4e2400502e1351b6f218b879ea7e114f9a8953a4ea51b8047edb9ab56ce71910428f5256932cfb9878a41')
 options=('!lto')
 
 prepare() {
   cd "$pkgname-$pkgver"
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+  mkdir completions/
 }
 
 build() {
   cd "$pkgname-$pkgver"
   cargo build --release --frozen
+  local compgen="target/release/$_pkgname completion"
+  $compgen bash >"completions/$pkgname"
+  $compgen elvish >"completions/$pkgname.elv"
+  $compgen fish >"completions/$pkgname.fish"
+  $compgen zsh >"completions/_$pkgname"
 }
 
 check() {
@@ -30,9 +37,13 @@ check() {
 
 package() {
   cd "$pkgname-$pkgver"
-  install -Dm 755 "target/release/jwt" -t "$pkgdir/usr/bin"
+  install -Dm 755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
   install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
   install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm644 "completions/$pkgname" -t 
"$pkgdir/usr/share/bash-completion/completions/"
+  install -Dm644 "completions/$pkgname.elv" -t "$pkgdir/usr/share/elvish/lib/"
+  install -Dm644 "completions/$pkgname.fish" -t 
"$pkgdir/usr/share/fish/vendor_completions.d/"
+  install -Dm644 "completions/_$pkgname" -t 
"$pkgdir/usr/share/zsh/site-functions/"
 }
 
 # vim: ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/jwt-cli/-/commit/e99863d5b8219bd02a77bb611dff0522507d6b56

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/jwt-cli/-/commit/e99863d5b8219bd02a77bb611dff0522507d6b56
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to