summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c22e580003ebfc2fafe5f8de552274ae0573915c (plain)
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
# Maintainer: Felipe Contreras <felipe.contreras@gmail.com>

pkgname=git-completion
pkgver=2.0
pkgrel=1
pkgdesc='Git completions for zsh and bash'
url="https://github.com/felipec/$pkgname"
arch=('any')
license=('GPL2')
makedepends=('git')
source=("${url}/archive/v${pkgver}.tar.gz")
sha1sums=('0f6c53245d10058d4eee0cec918adb89f42bba31')

check() {
	cd "$pkgname-$pkgver" || exit 1
	make test
}

package() {
	cd "$pkgname-$pkgver" || exit 1
	# TODO find a better location than /usr/local/share
	DESTDIR="$pkgdir/" make \
		zshfuncdir=/usr/share/zsh/site-functions \
		completionsdir=/usr/local/share/bash-completion/completions \
		sharedir=/usr/share/git-completion \
		install
}