aboutsummaryrefslogtreecommitdiffstats
path: root/main/goaccess/APKBUILD
blob: fdd71a2bbbaf79bb3c813bc950558d74ba58dc82 (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: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=goaccess
pkgver=1.0.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-dev 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 \
		--enable-geoip \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="447cb15212dd623b06e8ccb3e5b38fc2  goaccess-1.0.2.tar.gz"
sha256sums="58a83e201f29f0127b89032fbd40677558a643f6141b8c8413afd1e182f104f1  goaccess-1.0.2.tar.gz"
sha512sums="ab078e4e01fb3b47b35ca8c82de24add7a712e49f1164c8cc7b19368fe29ce27c63527b976e29d743d1f54a1e0a01ebfeca43fed9b927fa8d991e4cf56c51152  goaccess-1.0.2.tar.gz"