summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70c713bf102cfa7acc90d90c5a7c059db63ca3fc (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.3
pkgrel=1
pkgdesc='Git completions for Zsh and Bash'
url="https://github.com/felipec/$pkgname"
arch=('any')
license=('GPLv2')
makedepends=('git')
source=("$pkgname::git+$url.git#tag=v$pkgver")
sha256sums=('SKIP')

check() {
  cd $pkgname &&
  make test
}

package() {
  cd $pkgname &&
  # 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
}