44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'sway'
|
|
pkgname=sway
|
|
version=1.5
|
|
revision=2
|
|
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=c80644774d612d7d377093d4990061d36c36673862c06318a7b0e37fa47b0178
|
|
|
|
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
|
|
vbin contrib/grimshot
|
|
vman contrib/grimshot.1
|
|
}
|
|
|
|
grimshot_package() {
|
|
short_desc="Helper for screenshots within sway"
|
|
depends="grim slurp sway wl-clipboard jq libnotify"
|
|
archs="noarch"
|
|
pkg_install() {
|
|
vmove usr/bin/grimshot
|
|
vmove usr/share/man/man1/grimshot.1
|
|
}
|
|
}
|