Commit e114f3ef authored by Leo's avatar Leo

testing/stgit: remove shell completion definitions

parent 7450c6a7
......@@ -12,11 +12,11 @@ depends="git python3"
makedepends="asciidoc xmlto perl"
subpackages="
$pkgname-doc
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion
$pkgname-fish-completion
$pkgname-bash-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/ctmarinas/stgit/archive/v$pkgver.tar.gz"
source="https://github.com/stacked-git/stgit/releases/download/v$pkgver/stgit-$pkgver.tar.gz"
prepare() {
default_prepare
......@@ -49,39 +49,15 @@ package() {
prefix=/usr \
mandir=/usr/share/man/ \
install install-doc
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
mv "$pkgdir"/usr/share/stgit/completion/stgit.bash \
"$subpkgdir"/usr/share/bash-completion/completions/stgit
rmdir -p "$pkgdir"/usr/share/stgit/completion || true
}
zshcomp() {
depends=""
pkgdesc="Zsh compltions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
mkdir -p "$subpkgdir"/usr/share/zsh/site-functions
mv "$pkgdir"/usr/share/stgit/completion/stgit.zsh \
"$subpkgdir"/usr/share/zsh/site-functions/_stgit
rmdir -p "$pkgdir"/usr/share/stgit/completions || true
}
fishcomp() {
depends=""
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
install -Dm0644 "$pkgdir"/usr/share/stgit/completion/stgit.bash \
"$pkgdir"/usr/share/bash-completion/completions/stgit
install -Dm0644 "$pkgdir"/usr/share/stgit/completion/stgit.zsh \
"$pkgdir"/usr/share/zsh/site-functions/_stgit
install -Dm0644 "$pkgdir"/usr/share/stgit/completion/stg.fish \
"$pkgdir"/usr/share/fish/completions/stg.fish
mkdir -p "$subpkgdir"/usr/share/fish/completions
mv "$pkgdir"/usr/share/stgit/completion/stg.fish \
"$subpkgdir"/usr/share/fish/completions/stg.fish
rmdir -p "$pkgdir"/usr/share/stgit/completions || true
rm -rf "$pkgdir"/usr/share/stgit/completions
}
sha512sums="bfef074b952e01d9041a4ed5dfc6786c29ebb4b09a424ca09e9131ad21c418c4d79ec13eb908f5e8b015ebbc709aacb13824a1c9cad6d97e018a166b014c5e6f stgit-0.22.tar.gz"
sha512sums="f6fa6a11a31181a365a911af25c1656195584bed9adcb9707b4302097dc516cf9b12dfda6c3207daa127497027bb6604a68f6259bb74c2a111f742fd78edc3f9 stgit-0.22.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