# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=logstalgia
pkgver=1.1.1
pkgrel=0
pkgdesc="A website access log visualisation tool"
url="http://logstalgia.io/"
arch="all"
license="GPL"
makedepends="pcre-dev ftgl-dev sdl2-dev sdl2_image-dev
	libpng-dev jpeg-dev glew-dev boost-dev glm-dev freetype-dev"
subpackages="$pkgname-doc"
source="https://github.com/acaudwell/Logstalgia/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}
package() {
	cd "$builddir"
	#mkdir -p "$pkgdir"/usr/share
	#mkdir -p "$pkgdir"/usr/bin
	make prefix=$pkgdir/usr install
}

sha512sums="1ccb5307370c754cf42528dc6bd68c46ae6a6cf46c69148ab79e29e4c1989f860210a7b42ad34e5d06a7eca9bdd04a52b0cb577d67331aaeadedd1ca4a9439d3  logstalgia-1.1.1.tar.gz"
