diff options
Diffstat (limited to 'community/kwin/APKBUILD')
-rw-r--r-- | community/kwin/APKBUILD | 74 |
1 files changed, 42 insertions, 32 deletions
diff --git a/community/kwin/APKBUILD b/community/kwin/APKBUILD index 4041ca9b972..6a894c70953 100644 --- a/community/kwin/APKBUILD +++ b/community/kwin/APKBUILD @@ -1,25 +1,27 @@ # Contributor: Bart Ribbers <bribbers@disroot.org> -# Maintainer: Bart Ribbers <bribbers@disroot.org> +# Maintainer: team/kde <bribbers@disroot.org> + +# The group tag is just to easily find this APKBUILD by some scripts for automation +# group=kde-plasma pkgname=kwin -pkgver=5.23.4 +pkgver=6.0.4.1 pkgrel=0 pkgdesc="An easy to use, but flexible, composited Window Manager" -# armhf blocked by qt5-qtdeclarative -# s390x, mips64 and riscv64 blocked by kscreenlocker -arch="all !armhf !s390x !mips64 !riscv64" +# 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=" - kirigami2 - qt5-qtmultimedia - qt5-qtwayland + hwdata + kirigami + qt6-qtmultimedia + qt6-qtwayland xwayland " -depends_dev=" +depends_dev="$pkgname breeze-dev eudev-dev fontconfig-dev - kactivities-dev kcmutils-dev kcompletion-dev kconfig-dev @@ -32,7 +34,6 @@ depends_dev=" ki18n-dev kiconthemes-dev kidletime-dev - kinit-dev kio-dev knewstuff-dev knotifications-dev @@ -40,9 +41,9 @@ depends_dev=" krunner-dev kscreenlocker-dev kservice-dev + ksvg-dev ktextwidgets-dev kwayland-dev - kwayland-server-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev @@ -50,18 +51,18 @@ depends_dev=" libdrm-dev libepoxy-dev libinput-dev + libplasma-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 + plasma-activities-dev + qt6-qtbase-dev + qt6-qtdeclarative-dev + qt6-qtsensors-dev wayland-dev xcb-util-cursor-dev xcb-util-image-dev @@ -70,7 +71,13 @@ depends_dev=" makedepends="$depends_dev extra-cmake-modules kdoctools-dev - qt5-qttools-dev + kglobalacceld-dev + kpipewire-dev + libcap-utils + libdisplay-info-dev + plasma-wayland-protocols + qt6-qttools-dev + samurai " checkdepends="xvfb-run" @@ -78,24 +85,28 @@ case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac -source="https://download.kde.org/$_rel/plasma/$pkgver/kwin-$pkgver.tar.xz - 0001-Implement-Primary-Displays-on-the-Wayland-session.patch - 0002-xwayland-Also-follow-the-primary-output.patch - " subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang" -options="!check" # Broken +_repo_url="https://invent.kde.org/plasma/kwin.git" +source="https://download.kde.org/stable/plasma/${pkgver%.*}/kwin-$pkgver.tar.xz + 0001-kwin-Fix-building-of-tests.patch + " +# Broken, fails to setup due to missing or invalid XDG_RUNTIME_DIR? +options="!check" build() { - cmake -B build \ - -DCMAKE_BUILD_TYPE=None \ + # 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 + XDG_RUNTIME_DIR="$(mktemp -p -d "$builddir")" \ + xvfb-run ctest --test-dir build --output-on-failure } package() { @@ -107,10 +118,9 @@ package() { # 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=" -82da0883cf5e900c2278351e815453e25052edfb6534e4be015636dcc2c4051f154c6685eb2542e851d48bf8026bf2b359189864dda336b266208344dcfc851d kwin-5.23.4.tar.xz -b104e683683919ee13ed8e4735ebbf4217945cfef23fac05f5e8e927e697e08711d1545b422e801e6e5b4ed5eb3f14bc22646ee096b941d78a066ddcd49b0aa1 0001-Implement-Primary-Displays-on-the-Wayland-session.patch -fa2b1596df56f543134e4295cc24e79118213b0fa91377a64eafe9410f09544ce4847b68cda2f87af9ab151664f2016118dad4b5c3f3d865615e92139a7c6def 0002-xwayland-Also-follow-the-primary-output.patch +a38605dea13a225220544b77f835bff5bb191861ad34dd5ea6de06069921bc6db1f2683cb361d421ab3f7a82c58d2ff914512074a17e8e554bac3e5303f19ab5 kwin-6.0.4.1.tar.xz +14c4ddceca2ef51a139319bdd64bc84d7a1df7c6419e86bdbb04572be3212ca46f5c25cd61fa3b511d7644046f92a07408e472e41d95aab93ec494138a09c1a9 0001-kwin-Fix-building-of-tests.patch " |