[arch-commits] Commit in cargo-spellcheck/trunk (PKGBUILD)

Orhun Parmaksiz orhun at gemini.archlinux.org
Thu Mar 24 22:27:53 UTC 2022


    Date: Thursday, March 24, 2022 @ 22:27:53
  Author: orhun
Revision: 1175880

upgpkg: cargo-spellcheck 0.11.0-1: upstream release

Modified:
  cargo-spellcheck/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-24 22:26:14 UTC (rev 1175879)
+++ PKGBUILD	2022-03-24 22:27:53 UTC (rev 1175880)
@@ -2,7 +2,7 @@
 # Contributor: Sanpi <sanpi+aur at homecomputing.fr>
 
 pkgname=cargo-spellcheck
-pkgver=0.10.1
+pkgver=0.11.0
 pkgrel=1
 pkgdesc="Checks all your documentation for spelling and grammar mistakes"
 arch=('x86_64')
@@ -11,17 +11,22 @@
 depends=('hunspell')
 makedepends=('cargo' 'clang' 'hunspell-en_US')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('19fc73d0958e9c0bfdcbe01605eb5ec54fa16e32b749636e96c692bdec3f940b')
+sha256sums=('02cff9ef82b9d8522b990e228b21ef186ef515e65e582f4fb3285a75cb99b977')
 options=('!lto')
 
 prepare() {
   cd "$pkgname-$pkgver"
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+  mkdir -p completions
 }
 
 build() {
   cd "$pkgname-$pkgver"
   cargo build --release --frozen
+  local _completion="target/release/$pkgname completions"
+  $_completion --shell bash > "completions/$pkgbase"
+  $_completion --shell fish > "completions/$pkgbase.fish"
+  $_completion --shell zsh  > "completions/_$pkgbase"
 }
 
 check() {
@@ -34,6 +39,9 @@
   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-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm 664 "completions/$pkgname" -t "$pkgdir/usr/share/bash-completion/completions/"
+  install -Dm 664 "completions/$pkgname.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/"
+  install -Dm 664 "completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions/"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list