# Template file for 'turnstile'
pkgname=turnstile
version=0.1.10
revision=1
build_style=meson
configure_args="-Ddinit=enabled -Drunit=enabled -Ddefault_backend=runit
 -Dmanage_rundir=true"
hostmakedepends="pkg-config scdoc"
makedepends="pam-devel"
short_desc="Independent session/login tracker and user service manager"
maintainer="classabbyamp <void@placeviolette.net>"
license="BSD-2-Clause"
homepage="https://github.com/chimera-linux/turnstile"
distfiles="https://github.com/chimera-linux/turnstile/archive/refs/tags/v${version}.tar.gz"
checksum=186adf1402f3c63eecdbed241145cb029b7b1268c701a87381522d5b64583f2d
conf_files="/etc/turnstile/turnstiled.conf"

post_install() {
	vsv turnstiled
	vsconf "${FILESDIR}/dbus.run"
	chmod +x "${DESTDIR}/usr/share/examples/turnstile/dbus.run"
	vdoc "${FILESDIR}/README.voidlinux"
	vlicense COPYING.md
}
