summaryrefslogtreecommitdiff
path: root/community/tig/PKGBUILD
blob: 63f0a5f06358c50bfd2e1477b8232ce2425c9865 (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
28
29
30
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Loui Chang <louipc dot ist at gmail company>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: Nathan Jones <nathanj@insightbb.com>

pkgname=tig
pkgver=0.18
pkgrel=2
pkgdesc='Text-mode interface for Git.'
depends=('git' 'ncurses')
url='http://jonas.nitro.dk/tig/'
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
source=("http://jonas.nitro.dk/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz")
md5sums=('4fa9e33c5daa76b6fed11e068405356f')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install install-doc-man
  install -Dm0644 contrib/tigrc "$pkgdir/etc/tigrc.sample"
  install -Dm0644 contrib/tig-completion.bash "$pkgdir/usr/share/bash-completion/completions/tig"
}