void-packages/srcpkgs/sway/template
q66 bc29f90fa3 sway: readd xwayland dep
This is something people generally expect to work, and worse, by
making it optional it will sometimes remove existing xwayland
installs via orphan autoremove, so let's just keep it

People who really want to avoid having X11 installed can use
ignorepkg
2020-04-27 15:43:55 +02:00

32 lines
1 KiB
Bash

# Template file for 'sway'
pkgname=sway
version=1.4
revision=3
build_style=meson
conf_files="/etc/sway/config"
hostmakedepends="pkg-config wayland-devel scdoc git"
makedepends="xcb-util-wm-devel xcb-util-errors-devel wlroots-devel
wayland-devel wayland-protocols pcre-devel
json-c-devel pango-devel cairo-devel gdk-pixbuf-devel"
depends="swaybg xorg-server-xwayland $(vopt_if elogind elogind)"
short_desc="Tiling Wayland compositor compatible with i3"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://swaywm.org"
distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
checksum=e2805291fc01d49e21dda4b273e38170d1fff4e1757215439729edbed880dfbe
build_options="elogind"
desc_option_elogind="Uses elogind instead of setuid for privilege escalation"
post_patch() {
vsed -e 's/werror=true/werror=false/g' -i meson.build
}
post_install() {
vlicense LICENSE
if [ -z "$build_option_elogind" ]; then
# must be setuid without logind!
chmod u+s ${DESTDIR}/usr/bin/sway
fi
}