1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/git-extras/APKBUILD
2022-10-29 00:26:24 +00:00

33 lines
1.1 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=git-extras
pkgver=6.5.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="
1dbf350ab822f5317d57ca7b90b914a71d3ad83746a79a369e221d20ade606b07a8b0f702610f50d1551c5c3ca12517df18106c6066745b40bf966052bbe9a46 git-extras-6.5.0.tar.gz
"