Created
January 25, 2024 18:01
-
-
Save etorres4/0f210d9571151c973135cf17bcb872a9 to your computer and use it in GitHub Desktop.
PKGBUILD patch for adding shell completions for autorestic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 32958b9..379bebf 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,6 +1,6 @@ | |
pkgname=autorestic | |
pkgver=1.7.9 | |
-pkgrel=1 | |
+pkgrel=2 | |
pkgdesc='Config driven, easy backup cli for restic' | |
arch=('i686' 'x86_64' 'armv7h' 'aarch64') | |
url="https://github.com/cupcakearmy/$pkgname" | |
@@ -28,4 +28,16 @@ build() { | |
package() { | |
cd "$pkgname-$pkgver" | |
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname | |
+ | |
+ # Bash completions | |
+ ./autorestic completion bash > autorestic-bash | |
+ install -Dm644 autorestic-bash $pkgdir/usr/share/bash-completion/completions/autorestic | |
+ | |
+ # Fish completions | |
+ ./autorestic completion bash > autorestic.fish | |
+ install -Dm644 autorestic.fish $pkgdir/usr/share/fish/vendor_completions.d/autorestic.fish | |
+ | |
+ # Zsh completions | |
+ ./autorestic completion zsh > _autorestic | |
+ install -Dm644 _autorestic $pkgdir/usr/share/zsh/site-functions/_autorestic | |
} | |
diff --git a/.SRCINFO b/.SRCINFO | |
index 325f2c2..fca8c36 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -1,7 +1,7 @@ | |
pkgbase = autorestic | |
pkgdesc = Config driven, easy backup cli for restic | |
pkgver = 1.7.9 | |
- pkgrel = 1 | |
+ pkgrel = 2 | |
url = https://github.com/cupcakearmy/autorestic | |
arch = i686 | |
arch = x86_64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment