void-packages/srcpkgs/seatd/template
2021-10-19 22:10:17 -03:00

40 lines
1 KiB
Bash

# Template file for 'seatd'
pkgname=seatd
version=0.6.3
revision=1
build_style=meson
configure_args="-Dexamples=disabled $(vopt_if elogind -Dlogind=enabled) -Dwerror=false"
hostmakedepends="pkg-config scdoc"
makedepends="$(vopt_if elogind elogind-devel)"
short_desc="Minimal seat management daemon"
maintainer="Isaac Freund <mail@isaacfreund.com>"
license="MIT"
homepage="https://kl.wtf/projects/seatd/"
distfiles="https://git.sr.ht/~kennylevinsen/seatd/archive/${version}.tar.gz"
checksum=5226850c163b485aebe71da0d3f4941761637e146a5c9393cb40c52617ad84a8
system_groups=_seatd
build_options="elogind"
build_options_default="elogind"
post_install() {
vlicense LICENSE
vsv seatd
}
libseat_package() {
short_desc="Universal seat management library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libseat-devel_package() {
depends="libseat>=${version}_${revision} ${makedepends}"
short_desc="Universal seat management library - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}