# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=git-extras pkgver=7.1.0 pkgrel=0 pkgdesc="Little git extras" url="https://github.com/tj/git-extras" arch="noarch" license="MIT" depends="bash cmd:column git" subpackages="$pkgname-bash-completion $pkgname-doc" source="https://github.com/tj/git-extras/archive/$pkgver/git-extras-$pkgver.tar.gz" package() { # Avoid annoying interactive prompts if an alias is in your gitconfig. GIT_CONFIG=/dev/null \ make install DESTDIR="$pkgdir" PREFIX=/usr SYSCONFDIR=/etc install rm -Rf "$pkgdir"/etc/bash-completion install -D -m644 etc/bash_completion.sh \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname # ZSH and Fish completions don't work when autoloaded. install -D -m644 etc/git-extras-completion.zsh \ "$pkgdir"/usr/share/$pkgname/completions.zsh install -D -m644 etc/git-extras.fish \ "$pkgdir"/usr/share/$pkgname/completions.fish } sha512sums=" 955161b40c48ab92578efe487db78ea8d0fff499aaf8d4da2b13e8194a7f9297a84542c8642dd3a7c61c9a4d1e92342b5c586d341e4a003c9838d5e9731127b9 git-extras-7.1.0.tar.gz "