void-packages/srcpkgs/cage/template
Érico Rolim 1b1d50a161 cage: clean makedeps, add xwayland,elogind options
Partly by @travankor
closes #20755
2020-08-04 16:47:18 -04:00

27 lines
867 B
Bash

# Template file for 'cage'
pkgname=cage
version=0.1.2.1
revision=2
build_style=meson
configure_args="$(vopt_bool xwayland xwayland)"
hostmakedepends="pkg-config wayland-devel scdoc"
makedepends="wlroots-devel"
depends="$(vopt_if xwayland xorg-server-xwayland) $(vopt_if elogind elogind)"
short_desc="Kiosk compositor for Wayland"
maintainer="Illia Shestakov <ishestakov@airmail.cc>"
license="MIT"
homepage="https://www.hjdskes.nl/projects/cage/"
distfiles="https://github.com/Hjdskes/cage/archive/v${version}.tar.gz"
checksum=38a3e3968f00cc58fe1d9448e972cfac7d1efa30c48699f09032f264101a55ac
build_options="elogind xwayland"
build_options_default="xwayland"
desc_option_xwayland="Enable Xwayland support in cage"
post_install() {
if [ -z "$build_option_elogind" ]; then
# must be setuid without logind!
chmod u+s ${DESTDIR}/usr/bin/cage
fi
vlicense LICENSE
}