2023-06-09 21:53:06 +00:00

34 lines
1.1 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=git-extras
pkgver=7.0.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="
0768ea3de95f5b3de1912dced2c889c2dff823d5c4b8a796c73da043af36b75b3194760a30e8fe7c2525b681fe81fa45a438d0481f4a5166ff6de6d5d7d05927 git-extras-7.0.0.tar.gz
"