# Template file for 'goaccess'
pkgname=goaccess
version=1.9.3
revision=1
build_helper=qemu
build_style=gnu-configure
configure_args="--enable-utf8 --enable-geoip=mmdb"
hostmakedepends="automake gettext gettext-devel tar"
makedepends="gettext-devel ncurses-devel libmaxminddb-devel"
short_desc="Open source real-time web log analyzer and interactive viewer"
maintainer="Bart Kerkvliet <bart@bannarte.nl>"
license="MIT"
homepage="https://goaccess.io"
distfiles="http://tar.goaccess.io/goaccess-${version}.tar.gz"
checksum=49f0ee49e3c4a95f5f75f6806b0406746fcbf2f9ad971cae23e2ea95d3ec7837

pre_configure() {
	if [ "$CROSS_BUILD" ]; then
		vsed -i "s|\t\./bin2c |\tqemu-${XBPS_TARGET_QEMU_MACHINE}-static ./bin2c |" Makefile.am
	fi
	autoreconf -fi
}

post_install() {
	vlicense COPYING
}
