aboutsummaryrefslogtreecommitdiffstats
path: root/main/goaccess/APKBUILD
blob: d5bb17d04bb9e4e8ef8815377df3dcc9037820ff (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=0.9.1
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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="520ff38b75dcef4d16ad548f0d1873a6  goaccess-0.9.1.tar.gz"
sha256sums="2fca3f9c8bc99582b11180190832081ba0828b220541e8168d741486a1ac7165  goaccess-0.9.1.tar.gz"
sha512sums="279b1baa90aab8f3ca68a5af930fb7e3a1504c9a4f02ac857a5cb5c1a9a9f453bf41e2bf034daf84e3305e66f282006b3dc563262ac72b0883fd35da10ffba0a  goaccess-0.9.1.tar.gz"