# Maintainer: psykose pkgname=sway-git pkgver=1.8.1_git20230724 pkgrel=0 _gitrev=6bd11ad0dfb11f8cf7e0ab5330cd2488851c5614 _wlroots=e8d545a9770a2473db32e0a0bfa757b05d2af4f3 pkgdesc="i3-compatible window manager for Wayland" url="https://swaywm.org/" license="MIT" arch="x86_64 aarch64" makedepends=" basu-dev cairo-dev eudev-dev gdk-pixbuf-dev hwdata-dev json-c-dev libcap-utils libdisplay-info-dev libdrm-dev libevdev-dev libinput-dev libliftoff-dev libseat-dev libxkbcommon-dev linux-pam-dev mesa-dev meson pango-dev pcre2-dev scdoc vulkan-loader-dev wayland-dev wayland-protocols xcb-util-renderutil-dev xcb-util-wm-dev xwayland-dev " subpackages=" $pkgname-dbg $pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion " source="$pkgname-$_gitrev.tar.gz::https://github.com/swaywm/sway/archive/$_gitrev.tar.gz wlroots-$_wlroots.tar.gz::https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/$_wlroots.tar.gz sway-git.desktop " builddir="$srcdir/sway-$_gitrev" options="net setcap !check" provides="sway-virtual" provider_priority=10 replaces="sway" prepare() { default_prepare mkdir -p subprojects ln -sfv "$srcdir"/wlroots-$_wlroots subprojects/wlroots sed -i \ -e '/werror=true/d' \ "$srcdir"/wlroots-$_wlroots/meson.build } build() { CFLAGS="$CFLAGS -O2" \ abuild-meson \ --default-library static \ -Db_lto=true \ -Db_ndebug=true \ -Dsd-bus-provider=basu \ -Dswaybar=true \ -Dswaynag=true \ -Dman-pages=enabled \ -Dgdk-pixbuf=enabled \ -Dtray=enabled \ -Dxwayland=enabled \ . output meson compile -C output } package() { DESTDIR="$pkgdir" meson install \ --no-rebuild \ --skip-subprojects wlroots \ -C output cd "$pkgdir" rm -r usr/share/backgrounds # for setting SCHED_RR scheduling policy # before starting the Wayland server setcap cap_sys_nice=+ep usr/bin/sway install -Dm644 "$srcdir"/sway-git.desktop \ -t "$pkgdir"/usr/share/wayland-sessions/ } sha512sums=" d7e0c15ccca694d9a0dc9f47c55d53c5809448db39d1f47b5c0647c981ded695c2c44288a13cc8f328ab7e325b9680a54c008e6b3caf199425f0eadaf73351ae sway-git-6bd11ad0dfb11f8cf7e0ab5330cd2488851c5614.tar.gz 160417462771e746b913199fec60f7f4b6dd5e989a820f7056526f1d7d0e8d525efbbf3e4c5682dba0098c8a11537865da0cb2e371091e3af08ad916ddfe2d66 wlroots-e8d545a9770a2473db32e0a0bfa757b05d2af4f3.tar.gz d3f3b0393f730f57c1c1e557362c9a93d281d13e415165e2879560b6e414a6c74b160012d0c1ccb27a3b9d3fa219c35ec78178d7925d659c62a5d6af31b13c9c sway-git.desktop "