Last active
December 26, 2015 02:19
-
-
Save weynhamz/7077948 to your computer and use it in GitHub Desktop.
PKGBUILD of tig-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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