diff options
-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 |