# Template file for 'tuigreet'
pkgname=tuigreet
version=0.11.1
revision=1
build_style=cargo
make_install_args="--path crates/tuigreet"
hostmakedepends="scdoc"
depends="greetd"
short_desc="Graphical console greeter for greetd"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tuigreet/tuigreet"
changelog="https://github.com/tuigreet/tuigreet/releases"
distfiles="https://github.com/tuigreet/tuigreet/archive/refs/tags/${version}.tar.gz"
checksum=7d643ba224c40c6a63f9462a826630543071aea08e732ccd2e880bcd80d939e8
tags="greeter"
make_dirs="/var/cache/tuigreet 0755 _greeter _greeter"

post_build() {
	scdoc < contrib/man/tuigreet-1.scd > tuigreet.1
}

post_install() {
	vman tuigreet.1
}
