aboutsummaryrefslogtreecommitdiffstats
path: root/main/tig/APKBUILD
blob: 0d31b568d8a1584bfa9a8743cb38331fd7ed1980 (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: Celeste <cielesti@protonmail.com>
pkgname=tig
pkgver=2.5.8
pkgrel=3
pkgdesc="Text-mode interface for the git revision control system"
url="https://jonas.github.io/tig/"
arch="all"
license="GPL-2.0-or-later"
depends="git"
makedepends="ncurses-dev pcre2-dev"
checkdepends="util-linux-misc"
subpackages="$pkgname-doc"
source="https://github.com/jonas/tig/releases/download/tig-$pkgver/tig-$pkgver.tar.gz"

build() {
	CFLAGS="$CFLAGS -O2 -flto=auto" \
	CXXFLAGS="$CXXFLAGS -O2 -flto=auto" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make all
}

check() {
	SHELL=/bin/sh script --return --quiet -c "make -j1 test" /dev/null
}

package() {
	make DESTDIR="$pkgdir" install install-doc-man
}

sha512sums="
f4e7648ae7c58e936251f69071a092617368a04eabb4ae6726b2de1dbd305c559b7235f7aa70868f4ada02611196593a6e1c241062f57cd05a9c98685385053e  tig-2.5.8.tar.gz
"