makedeb


fzf-tab-completion-git 1edbccc22021.11.13-2


Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.)

Click here to go back to the commit logs for fzf-tab-completion-git.

Commit:


Hash: 3f0379d52334e39cd51b214723a61279eebadd09

Message: added missing quotes for package variables

Diff


diff --git a/PKGBUILD b/PKGBUILD
index 904da9d..e6660da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,33 +9,31 @@ url="https://github.com/lincheney/fzf-tab-completion"
 license=('GPL3')
 depends=('rl_custom_function' 'fzf')
 makedepends=('rustc' 'cargo')
-provides=("$_pkgname")
+provides=("${_pkgname}")
 #install=$pkgname.install
-source=("$_pkgname::git+https://github.com/lincheney/$_pkgname.git")
+source=("${_pkgname}::git+https://github.com/lincheney/${_pkgname}.git")
 sha256sums=('SKIP')
 
 pkgver() {
-  cd "$srcdir/$_pkgname"
+  cd "${srcdir}/${_pkgname}"
   printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }
 
 build() {
-  cd "$srcdir/$_pkgname"
+  cd "${srcdir}/${_pkgname}"
   (cd readline && cargo build --release)
 }
 
 check() {
-  cd "$srcdir/$_pkgname"
+  cd "${srcdir}/${_pkgname}"
   (cd readline && cargo test --release)
 }
 
 package() {
-  cd "$srcdir/$_pkgname"
-  install -D -m755 readline/bin/rl_custom_complete $pkgdir/usr/bin/rl_custom_complete
-  install -D -m755 readline/target/release/librl_custom_complete.so $pkgdir/usr/lib/librl_custom_complete.so
-
-  install -D -m755 bash/fzf-bash-completion.sh $pkgdir/usr/share/$_pkgname/bash/fzf-bash-completion.sh
-  install -D -m755 zsh/fzf-zsh-completion.sh $pkgdir/usr/share/$_pkgname/zsh/fzf-zsh-completion.sh
-
-  install -D -m644 README.md $pkgdir/usr/share/doc/$_pkgname/README.md
+  cd "${srcdir}/${_pkgname}"
+  install -D -m755 "readline/bin/rl_custom_complete" "${pkgdir}/usr/bin/rl_custom_complete"
+  install -D -m755 "readline/target/release/librl_custom_complete.so" "${pkgdir}/usr/lib/librl_custom_complete.so"
+  install -D -m755 "bash/fzf-bash-completion.sh" "${pkgdir}/usr/share/${_pkgname}/bash/fzf-bash-completion.sh"
+  install -D -m755 "zsh/fzf-zsh-completion.sh" "${pkgdir}/usr/share/${_pkgname}/zsh/fzf-zsh-completion.sh"
+  install -D -m644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
 }