From 25dc43ce8a9f902f622678115eb8bbc2ed098628 Mon Sep 17 00:00:00 2001
From: Bart Ribbers <bribbers@disroot.org>
Date: Tue, 16 Jul 2024 11:46:52 +0200
Subject: [PATCH] community/kwin: fix build on x86 and armv7

---
 community/kwin/APKBUILD | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/community/kwin/APKBUILD b/community/kwin/APKBUILD
index e11a19700cc0..46609e4e9a9b 100644
--- a/community/kwin/APKBUILD
+++ b/community/kwin/APKBUILD
@@ -70,7 +70,6 @@ depends_dev="$pkgname
 	"
 makedepends="$depends_dev
 	extra-cmake-modules
-	kdoctools-dev
 	kglobalacceld-dev
 	kpipewire-dev
 	libcap-utils
@@ -81,11 +80,21 @@ makedepends="$depends_dev
 	"
 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
-subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
+
 _repo_url="https://invent.kde.org/plasma/kwin.git"
 source="https://download.kde.org/stable/plasma/$(echo $pkgver | cut -d . -f 1-3)/kwin-$pkgver.tar.xz"
 # Broken, fails to setup due to missing or invalid XDG_RUNTIME_DIR?
-- 
GitLab