summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f3eee4cc5231071104bbd5a7f72e6876863115b7 (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=1.4
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=('e969109cafff4909b4421d709e4905a2b52b8a99')

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
}