#  Maintainer: 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=1
pkgdesc="Text-mode interface for git"
depends=('git' 'ncurses')
url="http://jonas.nitro.dk/tig/"
license=('GPL')
arch=('i686' 'x86_64')
source=("http://jonas.nitro.dk/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz")
md5sums=('4fa9e33c5daa76b6fed11e068405356f')

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

  ./configure --prefix=/usr
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install install-doc-man
  install -D -m644 contrib/tigrc "$pkgdir"/etc/tigrc.sample
  install -D -m644 contrib/tig-completion.bash "$pkgdir"/etc/bash_completion.d/tig
}