community/py3-pip: don't install fish completions

fixes #11290
This commit is contained in:
Leo 2020-03-10 19:26:19 -03:00
parent 077635e29a
commit 5cf769eaa2

View File

@ -3,8 +3,8 @@
pkgname=py3-pip
_pkgname=pip
pkgver=20.0.2
pkgrel=1
pkgdesc="A tool for installing and managing Python packages"
pkgrel=2
pkgdesc="Tool for installing and managing Python packages"
options="!check" # Requires pytest
url="http://www.pip-installer.org"
arch="noarch"
@ -36,7 +36,6 @@ makedepends="
subpackages="
$pkgname-doc
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch
$pkgname-bash-completion:bashcomp:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/pypa/pip/archive/$pkgver.tar.gz
@ -82,10 +81,6 @@ package() {
PYTHONPATH="$pkgdir"/usr/lib/python3.8/site-packages "$pkgdir"/usr/bin/pip \
completion --zsh | \
install -Dm644 /dev/stdin "$pkgdir"/usr/share/zsh/site-functions/_pip
PYTHONPATH="$pkgdir"/usr/lib/python3.8/site-packages "$pkgdir"/usr/bin/pip \
completion --fish | \
install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/completions/pip.fish
}
bashcomp() {
@ -93,8 +88,7 @@ bashcomp() {
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
cd "$pkgdir" || return 0
amove /usr/share/bash-completion/completions
amove usr/share/bash-completion/completions
}
zshcomp() {
@ -105,14 +99,5 @@ zshcomp() {
amove usr/share/zsh/site-functions
}
fishcomp() {
depends=""
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
cd "$pkgdir" || return 0
amove usr/share/fish/completions
}
sha512sums="f9965944ca0f319d01db1638ce97cf64772afff1778b3b1271155de73208cfcb3954d89a469c1143c0bf3288a53d4446165a49df994374b16ac6f7ffdae85857 py3-pip-20.0.2.tar.gz
61732786303ca7ec7828d04099a884534034d50cdd9a7a0de2ace34c28381a992943880f03797a64d5d4f3a76d317d356f76ffff5e3ffd97ed611b234cc05528 9be7454fd69081d06a3f8234a08a6d791e13173f.patch"