# Contributor: Sören Tempel # Contributor: Eivind Uggedal # Maintainer: Roberto Oliveira pkgname=hub pkgver=2.4.0 pkgrel=0 pkgdesc="Extends git with extra features for GitHub" url="http://hub.github.com/" arch="all" license="MIT" makedepends="go bash" options="!strip" subpackages=" $pkgname-doc $pkgname-bash-completion:bashcomp:noarch $pkgname-zsh-completion:zshcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./script/build } package() { cd "$builddir" install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname" install -D -m644 share/man/man1/$pkgname.1.ronn "$pkgdir"/usr/share/man/man1/$pkgname.1 } 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" install -Dm644 "$builddir"/etc/$pkgname.zsh_completion \ "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums="302a508b7353ed96f969d399d87cd395b5561490c41f46043969a49eaa997a63d2649b3f6f23a565f1b8c821f93c4db1b8c7104c85d0b08fc6d96f03e765f2f7 hub-2.4.0.tar.gz"