aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lnav/APKBUILD
blob: fac3b96d5b60eceb762f6dc237a42d4599495628 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=lnav
pkgver=0.6.1
pkgrel=0
pkgdesc="A curses-based tool for viewing and analyzing log files"
url="http://lnav.org"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="python-dev ncurses-dev openssl-dev pcre-dev readline-dev 
			sqlite-dev zlib-dev autoconf automake"
install=""
subpackages=""
source="https://github.com/tstack/lnav/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="293d09de03f8a3d18dea9da9db5a5e6d  lnav-0.6.1.tar.gz"
sha256sums="a952f5e6f8d08a9b96c1219b6beac09319a6be1521d783a645cdb6b4352a7fc9  lnav-0.6.1.tar.gz"
sha512sums="a44a0041bf52242f03b0d9ee0551430d148faa6a967467e69619c60524d079e79b27914c9488af34b39c6a66ee0e12b1fa70b8c4bed6ef7ea5fd8d07263a6801  lnav-0.6.1.tar.gz"