void-packages/srcpkgs/greetd/template

38 lines
1.1 KiB
Bash

# Template file for 'greetd'
pkgname=greetd
version=0.10.0
revision=1
build_style=cargo
conf_files="/etc/greetd/config.toml"
hostmakedepends="pkg-config scdoc"
makedepends="pam-devel"
short_desc="Minimal and flexible login manager daemon"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://git.sr.ht/~kennylevinsen/greetd"
changelog="https://git.sr.ht/~kennylevinsen/greetd/refs"
distfiles="https://git.sr.ht/~kennylevinsen/greetd/archive/${version}.tar.gz"
checksum=d6151a8683f386c53a010b6dfe37cf4c842bc03313bed7a917be96309372d1df
system_accounts="_greeter"
_greeter_groups="video"
_greeter_homedir="/var/lib/_greeter"
make_dirs="/var/lib/_greeter 0755 _greeter _greeter"
pre_build() {
make -C man
}
do_install() {
vbin "target/${RUST_TARGET}/release/agreety"
vbin "target/${RUST_TARGET}/release/fakegreet"
vbin "target/${RUST_TARGET}/release/greetd"
vinstall config.toml 644 etc/greetd/
make -C man install PREFIX=/usr DESTDIR="$DESTDIR"
vinstall ${FILESDIR}/greetd.pam 644 etc/pam.d/ greetd
vsv greetd
vdoc "${FILESDIR}/README.voidlinux"
}