Commit 8ad278e7 authored by Leo's avatar Leo

testing/pastel: remove shell completion definition

parent 58df8e5e
......@@ -9,7 +9,11 @@ arch="all !s390x !mips !mips64" # rust/cargo
license="Apache-2.0"
makedepends="rust cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/pastel/archive/v$pkgver.tar.gz"
subpackages="$pkgname-bash-completion:bashcomp $pkgname-zsh-completion:zshcomp $pkgname-fish-completion:fishcomp"
subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
build() {
export SHELL_COMPLETIONS_DIR="$builddir/completions"
......@@ -22,33 +26,13 @@ check() {
package() {
install -Dm755 "target/release/pastel" "$pkgdir/usr/bin/$pkgname"
}
bashcomp() {
depends=""
pkgdesc="Bash completion for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$builddir"/completions/pastel.bash \
"$subpkgdir"/usr/share/bash-completion/completions/pastel
}
zshcomp() {
depends=""
pkgdesc="Zsh completion for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
"$pkgdir"/usr/share/bash-completion/completions/pastel
install -Dm644 "$builddir"/completions/_pastel \
"$subpkgdir"/usr/share/zsh/site-functions/_pastel
}
fishcomp() {
depends=""
pkgdesc="Fish completion for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
"$pkgdir"/usr/share/zsh/site-functions/_pastel
install -Dm644 "$builddir"/completions/pastel.fish \
"$subpkgdir"/usr/share/fish/completions/pastel.fish
"$pkgdir"/usr/share/fish/completions/pastel.fish
}
sha512sums="e94c19a939a2dae441807b3ccde3d4884af4c83fe58c04f0072b9ff3d1952048e990de1ca056e65081faff04d7b14495135f1a64a1c2ecf8a5ea4da1105289ba pastel-0.7.1.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment