summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7f13db4c2c8101f6f0ffafe5c98fd3dc4ace188 (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
# Maintainer: hashworks <mail@hashworks.net>

pkgname=goaccess-git
pkgrel=1
pkgver=v0.8.r2629.ge0385cc
pkgdesc='GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.'
url='https://goaccess.io'
license=('MIT')
arch=('any')
conflicts=('goaccess')
provides=('goaccess')
depends=('ncurses' 'libmaxminddb' 'openssl')
optdepends=('geoip: Provides a mmdb geoip database')
backup=('etc/goaccess.conf')
source=('git+https://github.com/allinurl/goaccess.git')
md5sums=('SKIP')

pkgver() {
	cd "goaccess"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "goaccess"
	autoreconf -fiv
	./configure --prefix=/usr --enable-utf8 --enable-geoip=legacy --sysconfdir=/etc --with-openssl
	make
}

package() {
	cd "goaccess"
	make prefix="$pkgdir/usr" sysconfdir="$pkgdir/etc" install
}