# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kwin pkgver=9999_git1689478085 pkgrel=0 pkgdesc="An easy to use, but flexible, composited Window Manager" # armhf blocked by qt5-qtdeclarative arch="all !armhf" url="https://kde.org/plasma-desktop/" license="GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1-only" depends=" kirigami2 qt5-qtmultimedia qt5-qtwayland xwayland " depends_dev=" breeze-dev eudev-dev fontconfig-dev kactivities-dev kcmutils-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdeclarative-dev kdecoration-dev kglobalaccel-dev ki18n-dev kiconthemes-dev kidletime-dev kinit-dev kio-dev knewstuff-dev knotifications-dev kpackage-dev krunner-dev kscreenlocker-dev kservice-dev ktextwidgets-dev kwayland-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev lcms2-dev libdrm-dev libepoxy-dev libinput-dev libqaccessibilityclient-dev libxcvt-dev libxi-dev libxkbcommon-dev mesa-dev mesa-gbm pipewire-dev plasma-framework-dev qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtscript-dev qt5-qtsensors-dev qt5-qtx11extras-dev wayland-dev xcb-util-cursor-dev xcb-util-image-dev xcb-util-wm-dev " makedepends="$depends_dev extra-cmake-modules kdoctools-dev libcap-utils qt5-qttools-dev samurai " checkdepends="xvfb-run" case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac source="https://download.kde.org/$_rel/plasma/$pkgver/kwin-$pkgver.tar.xz" subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc " options="!check" # Broken build() { # significantly reduce debug symbol size # use None here to not make cmake pass bare -g (-g2) CFLAGS="$CFLAGS -O2 -g1" CXXFLAGS="$CXXFLAGS -O2 -g1" \ cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --install build # We don't ship systemd rm -r "$pkgdir"/usr/lib/systemd # kwin_wayland has CAP_SYS_NICE set. Because of this, libdbus doesn't trust the # environment and ignores it, causing for example keyboard shortcuts to not work # Remove CAP_SYS_NICE from kwin_wayland to make them work again setcap -r "$pkgdir"/usr/bin/kwin_wayland } sha512sums=" 86fd279ce9e82bc41fe5f0cc5f348ec97aaa9589d16cc6b99adf9c27b8cba8a67191be764d4c5e48a042368ef202d78397f756db4efd26ea822584293fdc730b kwin-5.27.6.tar.xz " options="$options !strip"