aboutsummaryrefslogtreecommitdiffstats
path: root/main/tig/APKBUILD
blob: f2092ea02e69a082d094cbd6b03b9257e0ebbb72 (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
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=tig
pkgver=2.1
pkgrel=0
pkgdesc="Text-mode interface for the git revision control system"
url="http://jonas.nitro.dk/tig"
arch="all"
license="GPL2+"
depends="git"
depends_dev=""
makedepends="ncurses-dev xmlto asciidoc git"
install=""
subpackages="$pkgname-doc"
source="http://jonas.nitro.dk/tig/releases/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make all doc-man || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install install-doc-man || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="d6c237aba2c03d85897da79789fd6104  tig-2.1.tar.gz"
sha256sums="306287f684f57563a53abf1cf46149e0d30c6b500fbc0c39e9bc059506373cb0  tig-2.1.tar.gz"
sha512sums="d21d263b62675721467aca35cf2f7fbe41e0042ac295516bd67e348039030df53de30f5dea3059c4b13188e450921972920c014f0381729826c727dcdd7f6804  tig-2.1.tar.gz"