summaryrefslogtreecommitdiff
path: root/community/tig/PKGBUILD
blob: 87e5e4dd820845b075c457bc64f2a060d15d05be (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: 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
}