# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-plasma pkgname=kwin pkgver=6.1.4 pkgrel=0 pkgdesc="An easy to use, but flexible, composited Window Manager" # armhf blocked by qt6-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=" hwdata kirigami qt6-qtmultimedia qt6-qtwayland xwayland " depends_dev="$pkgname breeze-dev eudev-dev fontconfig-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 kio-dev knewstuff-dev knotifications-dev kpackage-dev krunner-dev kscreenlocker-dev kservice-dev ksvg-dev ktextwidgets-dev kwayland-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev lcms2-dev libdrm-dev libepoxy-dev libinput-dev libplasma-dev libqaccessibilityclient-dev libxcvt-dev libxi-dev libxkbcommon-dev mesa-dev mesa-gbm pipewire-dev plasma-activities-dev qt6-qtbase-dev qt6-qtdeclarative-dev qt6-qtsensors-dev wayland-dev xcb-util-cursor-dev xcb-util-image-dev xcb-util-wm-dev " makedepends="$depends_dev extra-cmake-modules kglobalacceld-dev kpipewire-dev libcap-utils libdisplay-info-dev plasma-wayland-protocols qt6-qttools-dev samurai " checkdepends="xvfb-run" subpackages="$pkgname-dbg $pkgname-dev $pkgname-lang" case "$CARCH" in x86|armv7) ;; *) makedepends="$makedepends kdoctools-dev" subpackages="$subpackages $pkgname-doc" ;; esac case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac # strip fourth version component for source URL case "$pkgver" in *.*.*.*) _pkgver="${pkgver%.*}" ;; *) _pkgver="$pkgver" ;; esac _repo_url="https://invent.kde.org/plasma/kwin.git" source="https://download.kde.org/stable/plasma/$_pkgver/kwin-$pkgver.tar.xz" # Broken, fails to setup due to missing or invalid XDG_RUNTIME_DIR? options="!check" 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() { XDG_RUNTIME_DIR="$(mktemp -p -d "$builddir")" \ xvfb-run ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build # We don't ship systemd rm -r "$pkgdir"/usr/lib/systemd } sha512sums=" f7d512e633ec153f19b2f76f781d67a6c5f9b97df81205cf6e3cca227185b2764ffa612f0d1c0a528a37964dfcf3c6ac060c062ae8d653997057555cfd477090 kwin-6.1.4.tar.xz "