Commit 54d0f3fd authored by Leo's avatar Leo

testing/hub: remove shell function definition and invalid option

parent 09b63f0d
......@@ -10,12 +10,12 @@ url="https://hub.github.com/"
arch="all"
license="MIT"
makedepends="go util-linux bash ca-certificates groff"
options="net !checkroot chmod-clean"
options="net chmod-clean"
subpackages="
$pkgname-doc
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz"
......@@ -39,33 +39,12 @@ check() {
package() {
make PREFIX="$pkgdir"/usr install
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$builddir"/etc/hub.bash_completion.sh \
"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
}
zshcomp() {
depends=""
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -Dm644 "$builddir"/etc/$pkgname.zsh_completion \
"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
}
fishcomp() {
depends=""
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
install -Dm644 "$builddir"/etc/$pkgname.fish_completion \
"$subpkgdir"/usr/share/fish/completions/$pkgname.fish
"$pkgdir"/usr/share/fish/completions/$pkgname.fish
}
sha512sums="4809d12966cc983f42c8aef482e07bc4226e25fc4deba838e418664ce14ac9d2ac42842d0721a46466a80c0e492392542ecfaaccc2cea0efdd60df8b60a3ca02 hub-2.14.2.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