# Template file for 'goatcounter'
pkgname=goatcounter
version=2.7.0
revision=1
build_style=go
go_import_path=zgo.at/goatcounter/v2
go_package="${go_import_path}/cmd/goatcounter"
go_ldflags="-X zgo.at/goatcounter/v2.Version=${version}"
depends="tzdata"
short_desc="Easy web analytics without tracking of personal data"
maintainer="Martin Tournoij <martin@arp242.net>"
license="EUPL-1.2"
homepage="https://www.goatcounter.com/"
changelog="https://raw.githubusercontent.com/arp242/goatcounter/master/CHANGELOG.md"
distfiles="https://github.com/zgoat/goatcounter/archive/v${version}.tar.gz"
checksum=c919f9113a10916a46a1a6a180fd43552eff2d3503aa7890f41d03fa640ac471
system_accounts="_goatcounter"
make_dirs="/var/db/goatcounter 0750 _goatcounter _goatcounter"

post_install() {
	vsv goatcounter
	vdoc $FILESDIR/README.voidlinux
}
