summaryrefslogtreecommitdiffstats
path: root/main/goaccess/APKBUILD
blob: db47eb303c7acad071a2ee0cc2f26a051f37246f (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=goaccess
pkgver=0.8.5
pkgrel=0
pkgdesc="A real-time web log analyzer and interactive viewer"
url="http://goaccess.prosoftcorp.com/"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="ncurses-dev geoip glib-dev"
install=""
subpackages="$pkgname-doc"
source="http://tar.goaccess.io/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	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="c406940235f0e52940dbe7dbc1485885  goaccess-0.8.5.tar.gz"
sha256sums="a4c6b6b98875059409b2a7528d5e7662536591b1949461cb03d88ea1360c3a88  goaccess-0.8.5.tar.gz"
sha512sums="736ae69d0c3bbbaf1d06b287c2d600aae1a72255361c9bb40d1c74986932a771c2b401126e75f22ad4be72f6dc053efd262c40ad40cd62efc57c4461d5481c63  goaccess-0.8.5.tar.gz"