From 1b1d50a1610ec63b2f951143d796c17f5997d024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Fri, 24 Jul 2020 00:06:55 -0300 Subject: [PATCH] cage: clean makedeps, add xwayland,elogind options Partly by @travankor closes #20755 --- srcpkgs/cage/template | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/srcpkgs/cage/template b/srcpkgs/cage/template index 76ba731cc58..a4085ac8483 100644 --- a/srcpkgs/cage/template +++ b/srcpkgs/cage/template @@ -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 " 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 }