# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-weblog
pkgver=0.11.1
pkgrel=4
pkgdesc="ACF for web proxy (squid and dansguardian) logfiles"
url="https://gitlab.alpinelinux.org/acf/acf-weblog"
arch="noarch"
license="GPL-2.0-only"
options="!check" # no test suite
depends="acf-core lua-sql-postgres wget postgresql-client lua-subprocess"
install="$pkgname.post-upgrade"
source="$pkgname-$pkgver.tar.gz::https://gitlab.alpinelinux.org/acf/acf-weblog/-/archive/v$pkgver/acf-weblog-v$pkgver.tar.gz
	acf-weblog-update-schema
	"
builddir="$srcdir/$pkgname-v$pkgver"

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/acf-weblog-update-schema \
		"$pkgdir"/usr/sbin/acf-weblog-update-schema
}

sha512sums="
90f2b1c68e4afd849261410105a442ffb3b83cb1e3c70abaef24ede41773c602bd6d743bf5ef805b5b93619dc0ca3215638f8d1beaa071a408f15f2944b6cf51  acf-weblog-0.11.1.tar.gz
98474adf2b60b30dbe060753db9b8c8d70696e063cfae810f7aab59cba229e45e15abe368609bd9ab3480c594fd6e9545c5c128fcdc81908df4463f86cb475e3  acf-weblog-update-schema
"
