aboutsummaryrefslogtreecommitdiffstats
path: root/main/goaccess/APKBUILD
blob: a5fb5a74c873e2f362a180fa58079817d04b1d34 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=goaccess
pkgver=0.9.2
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"
	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
}

md5sums="9ab6bfb3cb2050a1be121d423145427a  goaccess-0.9.2.tar.gz"
sha256sums="b6ee0742f7ecc657633d680bd6cb3497b93b4be2f880ad68e3f48a72d81b2cd0  goaccess-0.9.2.tar.gz"
sha512sums="a2c19d2cc54f4243f25d83d7b4ac344b1cfc9edf1250343a9fd1bde686dd4ac6637409c583fc5e9c9f0b2498407691158866aba114bb733cbe5e68fd1eb82b5a  goaccess-0.9.2.tar.gz"