Skip to content

Instantly share code, notes, and snippets.

@niklas-heer
Created February 28, 2015 17:36
Show Gist options
  • Save niklas-heer/21f82c70d8e11c3baadd to your computer and use it in GitHub Desktop.
Save niklas-heer/21f82c70d8e11c3baadd to your computer and use it in GitHub Desktop.
hub-bin
# Maintainer: Félix "passcod" Saparelli <aur@passcod.name>
# Contributors:
# Niklas "niklas.heer" Heer <niklas.heer@gmail.com>
# Matthieu "CircleCode" Codron <codronm+circlecode@gmail.com>
pkgname=hub-bin
pkgver=2.2.0
pkgrel=5
pkgdesc="hub helps you win at git. Go-powered version"
arch=('i686' 'x86_64')
url="https://hub.github.com"
license=('MIT')
_arch=amd64 # Workaround for mkaurball: https://bugs.archlinux.org/task/40711
[[ $CARCH = i686 ]] && _arch=386
source=("https://github.com/github/hub/releases/download/v${pkgver}/hub-linux-${_arch}-${pkgver}.tar.gz")
sha512sums=('SKIP')
install='hub-bin.install'
package() {
cd $srcdir/hub-linux-${_arch}-${pkgver}
install -Dm755 {,$pkgdir/usr/bin/}hub
install -Dm644 {etc/,$pkgdir/usr/share/git/completion/}hub.bash_completion.sh
install -Dm644 etc/hub.zsh_completion "$pkgdir/usr/local/share/zsh/site-functions/_hub"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment