# Contributor: Ɓukasz Jendrysik # Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=goaccess pkgver=0.9.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 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="9ab6bfb3cb2050a1be121d423145427a goaccess-0.9.2.tar.gz" sha256sums="b6ee0742f7ecc657633d680bd6cb3497b93b4be2f880ad68e3f48a72d81b2cd0 goaccess-0.9.2.tar.gz" sha512sums="a2c19d2cc54f4243f25d83d7b4ac344b1cfc9edf1250343a9fd1bde686dd4ac6637409c583fc5e9c9f0b2498407691158866aba114bb733cbe5e68fd1eb82b5a goaccess-0.9.2.tar.gz"