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

pkgname=goaccess-git
pkgrel=1
pkgver=v1.4.r7.ge462ba08
pkgdesc='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=('x86_64')
conflicts=('goaccess')
provides=('goaccess')
depends=('ncurses' 'libmaxminddb' 'openssl')
optdepends=('geoip2-database: for geoip support')
makedepends=('git')
backup=('etc/goaccess/goaccess.conf' 'etc/goaccess/browsers.list' 'etc/goaccess/podcast.list')
source=('git+https://github.com/allinurl/goaccess.git')
sha256sums=('SKIP')

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

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

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