diff options
author | Václav Kubernát | 2024-02-12 21:10:44 +0100 |
---|---|---|
committer | Václav Kubernát | 2024-02-12 21:24:05 +0100 |
commit | bb2ea8b4ba6931780f939303ecc7ef2b394af517 (patch) | |
tree | eb82546739f0827656c638ba99ae8e5d09871180 | |
parent | 17fbcb591843cec1aa1d2f597b050351c20af622 (diff) | |
download | aur-bb2ea8b4ba6931780f939303ecc7ef2b394af517.tar.gz |
Install bash-completion script
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | bash-completion-shvspy | 5 |
3 files changed, 14 insertions, 2 deletions
@@ -20,6 +20,8 @@ pkgbase = shvspy-git conflicts = shvspy conflicts = shvspy-git source = git+https://github.com/silicon-heaven/shvspy.git + source = bash-completion-shvspy md5sums = SKIP + md5sums = f681f0f02001b80f964ce640a41b5c27 pkgname = shvspy-git @@ -12,8 +12,12 @@ depends=('necrolog' 'libshv' 'glibc' 'gcc-libs' 'qt6-base' 'qt6-networkauth' 'qt makedepends=('git' 'cmake') conflicts=('shvspy' 'shvspy-git') provides=('shvspy') -source=('git+https://github.com/silicon-heaven/shvspy.git') -md5sums=('SKIP') +source=('git+https://github.com/silicon-heaven/shvspy.git' + 'bash-completion-shvspy' +) +md5sums=('SKIP' + 'f681f0f02001b80f964ce640a41b5c27' +) pkgver() { cd "$srcdir/$_gitname" @@ -33,4 +37,5 @@ build() { package() { DESTDIR="$pkgdir" cmake --install "$srcdir/build" + install -Dm644 bash-completion-shvspy "${pkgdir}/usr/share/bash-completion/completions/shvspy" } diff --git a/bash-completion-shvspy b/bash-completion-shvspy new file mode 100644 index 000000000000..e851bf4494ad --- /dev/null +++ b/bash-completion-shvspy @@ -0,0 +1,5 @@ +if ! declare -F __shv_compl > /dev/null; then + _completion_loader shv +fi + +complete -F __shv_compl shvspy |