aboutsummaryrefslogtreecommitdiffstats
path: root/testing/git-extras/APKBUILD
blob: faf911ddb206d15cf911043c97a4403a9313b7bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=git-extras
pkgver=6.4.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.d

	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="
1b28d09d294f6d060b7639401e56c8d5e762614b5f6928ee6267e49af943e349e2399558ebac60008e8240218c13f00f8aea7dc07b71fec1e2dc25487bc847a3  git-extras-6.4.0.tar.gz
"