Skip to content

Instantly share code, notes, and snippets.

@weynhamz
Last active December 26, 2015 02:19
Show Gist options
  • Save weynhamz/7077948 to your computer and use it in GitHub Desktop.
Save weynhamz/7077948 to your computer and use it in GitHub Desktop.
PKGBUILD of tig-git
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Max Riveiro <[email protected]>
_pkgname=tig
pkgname=tig-git
pkgdesc="Text-mode interface for git"
pkgver=1.2.1.r58.g00979ec
pkgrel=1
url="http://jonas.nitro.dk/tig/"
arch=('i686' 'x86_64')
license=('GPL')
source=('git://github.com/jonas/tig.git')
depends=('git' 'ncurses')
makedepends=('git' 'xmlto' 'asciidoc' 'docbook-xsl')
provides=('tig')
conflicts=('tig')
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --always | sed -E 's/^tig-//;s/([^-]*-g)/r\1/;s|-|.|g'
}
build() {
cd "${_pkgname}"
make configure
./configure --prefix=/usr
}
package() {
cd "${_pkgname}"
make DESTDIR=${pkgdir} install
install -D -m0644 contrib/tigrc ${pkgdir}/etc/tigrc.sample
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment