summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Hesse2015-08-04 23:54:19 +0200
committerChristian Hesse2015-08-04 23:54:19 +0200
commit2a1474a688596f7d1034fc2d5100023380d44a3c (patch)
treef6cce48165d5eebfd4e484ede22f9cc0338ea48d /PKGBUILD
downloadaur-tig-git.tar.gz
initial import of tig-git 2.1.1.r48.geecfbda-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..39f3b805ea1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Christian Hesse <mail@eworm.de
+# Contributor: Lukas Fleischer <lfleischer at archlinux dot org>
+# Contributor: Loui Chang <louipc dot ist at gmail company>
+# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
+# Contributor: Nathan Jones <nathanj@insightbb.com>
+
+pkgname=tig-git
+pkgver=2.1.1.r48.geecfbda
+pkgrel=1
+pkgdesc='Text-mode interface for Git - git checkout'
+depends=('git' 'ncurses')
+makedepends=('asciidoc' 'xmlto')
+url='http://jonas.nitro.dk/tig/'
+license=('GPL')
+arch=('i686' 'x86_64')
+conflicts=('tig')
+provides=('tig')
+backup=('etc/tigrc')
+source=('git://github.com/jonas/tig.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd tig/
+
+ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
+ printf '%s.r%s.g%s' \
+ "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git log -1 --format='%h')"
+ else
+ printf '0.r%s.g%s' \
+ "$(git rev-list --count master)" \
+ "$(git log -1 --format='%h')"
+ fi
+}
+
+build() {
+ cd tig/
+
+ ./autogen.sh
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd tig/
+
+ make DESTDIR="${pkgdir}" install install-doc-man
+
+ install -Dm0644 contrib/tig-completion.bash "${pkgdir}/usr/share/bash-completion/completions/tig"
+}
+