void-packages/srcpkgs/sway/template

28 lines
912 B
Bash

# Template file for 'sway'
pkgname=sway
version=1.1.1
revision=1
build_style=meson
conf_files="/etc/sway/config"
hostmakedepends="pkg-config wayland-devel scdoc git"
makedepends="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="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="https://swaywm.org"
distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
checksum=740bf97556c54da83937a255113d715aaa05e05b44d61fbe85e01b53ff1f9922
build_options="elogind"
desc_option_elogind="Uses elogind instead of setuid for privilege escalation"
post_install() {
vlicense LICENSE
if [ -z "$build_option_elogind" ]; then
# must be setuid without logind!
chmod u+s ${DESTDIR}/usr/bin/sway
fi
}