cage: clean makedeps, add xwayland,elogind options

Partly by @travankor
closes #20755
This commit is contained in:
Érico Rolim 2020-07-24 00:06:55 -03:00 committed by Andrew J. Hesford
parent af2f8063ae
commit 1b1d50a161
1 changed files with 12 additions and 2 deletions

View File

@ -1,10 +1,12 @@
# Template file for 'cage'
pkgname=cage
version=0.1.2.1
revision=1
revision=2
build_style=meson
configure_args="$(vopt_bool xwayland xwayland)"
hostmakedepends="pkg-config wayland-devel scdoc"
makedepends="xcb-util-wm-devel xcb-util-errors-devel libxkbcommon-devel pixman-devel wayland-devel wlroots-devel"
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"
@ -12,6 +14,14 @@ 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
}