From 352a31dff65267959a03c1c6885530a56c7e914b Mon Sep 17 00:00:00 2001
From: Bart Ribbers <bribbers@disroot.org>
Date: Wed, 30 Jun 2021 12:22:20 +0200
Subject: [PATCH] community/various: disable on riscv64 due to missing rust

---
 community/akregator/APKBUILD                  |  4 ++-
 community/baobab/APKBUILD                     |  3 +-
 community/breeze-gtk/APKBUILD                 |  2 +-
 community/caerbannog/APKBUILD                 |  3 +-
 community/calamares-extensions/APKBUILD       |  4 +--
 community/calligra/APKBUILD                   |  6 ++--
 community/colord-gtk/APKBUILD                 |  3 +-
 community/deja-dup/APKBUILD                   |  3 +-
 community/epiphany/APKBUILD                   |  3 +-
 community/gdm/APKBUILD                        |  3 +-
 community/gnome-applets/APKBUILD              |  4 ++-
 community/gnome-builder/APKBUILD              |  3 +-
 community/gnome-calculator/APKBUILD           |  3 +-
 community/gnome-calendar/APKBUILD             |  3 +-
 community/gnome-clocks/APKBUILD               |  3 +-
 community/gnome-control-center/APKBUILD       |  6 ++--
 community/gnome-disk-utility/APKBUILD         |  3 +-
 community/gnome-flashback/APKBUILD            |  4 ++-
 community/gnome-font-viewer/APKBUILD          |  3 +-
 community/gnome-initial-setup/APKBUILD        |  3 +-
 community/gnome-music/APKBUILD                |  5 ++--
 community/gnome-panel/APKBUILD                |  3 +-
 community/gnome-passwordsafe/APKBUILD         |  3 +-
 community/gnome-photos/APKBUILD               |  3 +-
 community/gnome-screenshot/APKBUILD           |  3 +-
 community/gnome-session/APKBUILD              |  3 +-
 community/gnome-terminal/APKBUILD             |  3 +-
 community/gnome-tweaks/APKBUILD               |  4 ++-
 community/gnumeric/APKBUILD                   |  5 ++--
 community/grantlee-editor/APKBUILD            | 30 ++++++++++++++++---
 community/gtkmm4/APKBUILD                     | 14 ++++-----
 community/gtksourceview5/APKBUILD             |  3 +-
 community/kblocks/APKBUILD                    |  4 ++-
 community/kcalc/APKBUILD                      |  4 +--
 community/kcharselect/APKBUILD                |  4 +--
 community/kdenlive/APKBUILD                   |  4 +--
 community/kdepim-addons/APKBUILD              |  6 ++--
 .../kdeplasma-applets-xrdesktop/APKBUILD      |  7 +++--
 community/kdiamond/APKBUILD                   | 23 ++++++++++++--
 community/kgamma5/APKBUILD                    |  4 +--
 community/kgx/APKBUILD                        |  4 ++-
 community/khelpcenter/APKBUILD                | 25 ++++++++++++++--
 42 files changed, 164 insertions(+), 69 deletions(-)

diff --git a/community/akregator/APKBUILD b/community/akregator/APKBUILD
index 90f2a58abd8a..1551e78cfa01 100644
--- a/community/akregator/APKBUILD
+++ b/community/akregator/APKBUILD
@@ -3,7 +3,9 @@
 pkgname=akregator
 pkgver=21.04.2
 pkgrel=0
-arch="all !ppc64le !s390x !armhf !mips !mips64" # Limited by qt5-qtwebengine
+# armhf blocked by extra-cmake-modules
+# ppc64le, s390x, mips64 and riscv64 blocked by qt5-qtwebengine
+arch="all 1armhf !ppc64le !s390x !mips64 !riscv64"
 url="https://kontact.kde.org/components/akregator.html"
 pkgdesc="RSS Feed Reader"
 license="GPL-2.0-or-later AND LGPL-2.0-or-later"
diff --git a/community/baobab/APKBUILD b/community/baobab/APKBUILD
index 820e2b34b9ce..b4c2129da185 100644
--- a/community/baobab/APKBUILD
+++ b/community/baobab/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="A graphical application to analyse disk usage in any Gnome environment"
 url="https://wiki.gnome.org/action/show/Apps/DiskUsageAnalyzer"
-arch="all !s390x !mips64" # libhandy1
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 makedepends="meson glib-dev gtk+3.0-dev gettext-dev vala itstool libhandy1-dev"
 options="!check" # no tests
diff --git a/community/breeze-gtk/APKBUILD b/community/breeze-gtk/APKBUILD
index 428defdb4dc5..3fd5c5f0e216 100644
--- a/community/breeze-gtk/APKBUILD
+++ b/community/breeze-gtk/APKBUILD
@@ -5,7 +5,7 @@ pkgver=5.22.2.1
 pkgrel=0
 pkgdesc="A GTK Theme Built to Match KDE's Breeze"
 # armhf blocked by extra-cmake-modules
-# s390x blocked by breeze
+# s390x, mips64 and riscv64 blocked by polkit -> breeze
 arch="noarch !armhf !s390x !mips64"
 url="https://kde.org/plasma-desktop/"
 license="LGPL-2.1-only"
diff --git a/community/caerbannog/APKBUILD b/community/caerbannog/APKBUILD
index ac1b6eda6e37..4d823b57c6d9 100644
--- a/community/caerbannog/APKBUILD
+++ b/community/caerbannog/APKBUILD
@@ -5,7 +5,8 @@ pkgver=0.3
 pkgrel=1
 pkgdesc="mobile-friendly Gtk frontend for password-store"
 url="https://git.sr.ht/~craftyguy/caerbannog"
-arch="all !s390x !mips !mips64" # no libhandy1
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="all !s390x !mips64 !riscv64"
 license="GPL-3.0-or-later"
 depends="
 	libhandy1
diff --git a/community/calamares-extensions/APKBUILD b/community/calamares-extensions/APKBUILD
index 710fd3448177..a8874dbf7a15 100644
--- a/community/calamares-extensions/APKBUILD
+++ b/community/calamares-extensions/APKBUILD
@@ -6,8 +6,8 @@ pkgname=calamares-extensions
 pkgver=1.1.2
 pkgrel=0
 # armhf blocked by qt5-qtdeclarative
-# ppc64le, s390x and mips64 blocked by calamares
-arch="all !armhf !ppc64le !s390x !mips64"
+# ppc64le, s390x, mips64 and riscv64 blocked by qt5-qtwebengine -> calamares
+arch="all !armhf !ppc64le !s390x !mips64 !riscv64"
 url="https://github.com/calamares/calamares-extensions"
 pkgdesc="Calamares Branding and Module Examples"
 license="GPL-3.0-or-later"
diff --git a/community/calligra/APKBUILD b/community/calligra/APKBUILD
index b4404bbcbf22..c5ce0eeefdf5 100644
--- a/community/calligra/APKBUILD
+++ b/community/calligra/APKBUILD
@@ -4,7 +4,9 @@ pkgname=calligra
 pkgver=3.2.1
 pkgrel=12
 pkgdesc="Office and graphic art suite by KDE"
-arch="all !armhf !mips !mips64 !s390x !ppc64le" # qtdeclarative
+# armhf blocked by extra-cmake-modules
+# mips64, s390x and riscv64 blocked by polkit -> kio
+arch="all !armhf !mips64 !s390x !ppc64le !riscv64"
 url="https://calligra.org"
 license="GPL-2.0-or-later AND LGPL-2.0-only"
 makedepends="
@@ -77,6 +79,6 @@ check() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 sha512sums="e53a939aa1b277c2291cfd626868c77085fc9cc7774df160b5b1afceb33314b4381fa8ffe03636cbde6e35cc2abd170a51e7f9c1a99191339313b9c9c3b1526f  calligra-3.2.1.tar.xz"
diff --git a/community/colord-gtk/APKBUILD b/community/colord-gtk/APKBUILD
index 5335d815a165..2a42ebdf9daa 100644
--- a/community/colord-gtk/APKBUILD
+++ b/community/colord-gtk/APKBUILD
@@ -5,7 +5,8 @@ pkgrel=2
 pkgdesc="GTK support library for colord"
 options="!check" # Requires bus session
 url="https://www.freedesktop.org/software/colord/"
-arch="all !s390x !mips64"
+# s390x, mips64 and riscv64 blocked by polkit -> colord
+arch="all !s390x !mips64 !riscv64"
 license="LGPL-2.1-or-later"
 makedepends="meson intltool glib-dev gtk+3.0-dev colord-dev lcms2-dev"
 checkdepends="xvfb-run"
diff --git a/community/deja-dup/APKBUILD b/community/deja-dup/APKBUILD
index 8191b923233d..ef7967dbfe94 100644
--- a/community/deja-dup/APKBUILD
+++ b/community/deja-dup/APKBUILD
@@ -5,7 +5,8 @@ pkgver=42.7
 pkgrel=0
 pkgdesc="Simple backup tool for GNOME"
 url="https://wiki.gnome.org/Apps/DejaDup"
-arch="all !s390x !mips !mips64" # libhandy
+# s390x, mips64 and riscv64 blocked by rust -> libhandy
+arch="all !s390x !mips64 !riscv64"
 license="GPL-3.0-or-later"
 depends="dbus:org.freedesktop.Secrets"
 makedepends="meson gtk+3.0-dev json-glib-dev libhandy1-dev
diff --git a/community/epiphany/APKBUILD b/community/epiphany/APKBUILD
index af3403369291..57deef79f559 100644
--- a/community/epiphany/APKBUILD
+++ b/community/epiphany/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.1
 pkgrel=0
 pkgdesc="A simple, clean, beautiful view of the web"
 url="https://wiki.gnome.org/Apps/Web"
-arch="all !s390x !mips !mips64" # libhandy is not available on s390x
+# s390x, mips64 and riscv64 blocked by rust -> libhandy
+arch="all !s390x !mips64 !riscv64"
 license="GPL-3.0-or-later"
 depends="gsettings-desktop-schemas dbus:org.freedesktop.Secrets"
 makedepends="meson iso-codes-dev gtk+3.0-dev gsettings-desktop-schemas-dev
diff --git a/community/gdm/APKBUILD b/community/gdm/APKBUILD
index 0a1f2ee9598c..b4b3ac306c3e 100644
--- a/community/gdm/APKBUILD
+++ b/community/gdm/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="GNOME display manager"
 url="https://wiki.gnome.org/Projects/GDM"
-arch="all !armhf !s390x !ppc64le !mips !mips64"
+# s390x, mips64 and riscv64 blocked by polkit -> upower
+arch="all !armhf !s390x !ppc64le !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="dconf linux-pam>=1.4 gnome-settings-daemon gnome-shell xorg-server
 	xwayland xrdb gsettings-desktop-schemas gnome-session"
diff --git a/community/gnome-applets/APKBUILD b/community/gnome-applets/APKBUILD
index da89049a2101..6fddda66f46d 100644
--- a/community/gnome-applets/APKBUILD
+++ b/community/gnome-applets/APKBUILD
@@ -5,7 +5,9 @@ pkgver=3.38.0
 pkgrel=0
 pkgdesc="Small programs for the panel"
 url="https://wiki.gnome.org/Projects/GnomeApplets"
-arch="all !s390x !ppc64le !armhf !mips !mips64" # missing dep: gnome-panel
+# s390x, mips64 and riscv64 blocked by polkit -> upower
+# ppc64le and armhf blocked by gnome-panel
+arch="all !s390x !ppc64le !armhf !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="adwaita-icon-theme"
 makedepends="gtk+3.0-dev glib-dev libgtop-dev libwnck3-dev libnotify-dev upower-dev
diff --git a/community/gnome-builder/APKBUILD b/community/gnome-builder/APKBUILD
index 935df964cacf..db8f9baf8612 100644
--- a/community/gnome-builder/APKBUILD
+++ b/community/gnome-builder/APKBUILD
@@ -5,7 +5,8 @@ pkgver=3.40.1
 pkgrel=0
 pkgdesc="Develop software for GNOME"
 url="https://wiki.gnome.org/Apps/Builder"
-arch="all !s390x !mips !mips64"
+# s390x, mips64 and riscv64 blocked by rust -> webkit2gtk
+arch="all !s390x !mips64 !riscv64"
 license="GPL-3.0-or-later"
 depends="devhelp flatpak-builder py3-lxml py3-gobject3"
 makedepends="meson libdazzle-dev glib-dev gtk+3.0-dev gtksourceview4-dev
diff --git a/community/gnome-calculator/APKBUILD b/community/gnome-calculator/APKBUILD
index 8d7c9103ebfc..3486b61446b8 100644
--- a/community/gnome-calculator/APKBUILD
+++ b/community/gnome-calculator/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="Calculator for solving mathematical equations"
 url="https://wiki.gnome.org/Apps/Calculator"
-arch="all !s390x !mips !mips64" # gtksourceview4 is not available on s390x
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="all !s390x !mips !mips64"
 license="GPL-3.0-or-later"
 makedepends="vala gtksourceview4-dev glib-dev gtk+3.0-dev libsoup-dev
 	libxml2-dev meson mpc1-dev mpfr-dev itstool libgee-dev libhandy1-dev"
diff --git a/community/gnome-calendar/APKBUILD b/community/gnome-calendar/APKBUILD
index 051c7336634b..5e22d8529f6a 100644
--- a/community/gnome-calendar/APKBUILD
+++ b/community/gnome-calendar/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="Calendar application for GNOME"
 url="https://wiki.gnome.org/Apps/Calendar"
-arch="all !s390x !mips !mips64" # libhandy
+# s390x, mips64 and riscv64 blocked by rust -> libhandy
+arch="all !s390x !mips64 !riscv64"
 license="GPL-3.0-or-later"
 depends="gsettings-desktop-schemas"
 makedepends="meson libical-dev gsettings-desktop-schemas-dev evolution-data-server-dev
diff --git a/community/gnome-clocks/APKBUILD b/community/gnome-clocks/APKBUILD
index 5f978ba3ffdc..b8439ca22768 100644
--- a/community/gnome-clocks/APKBUILD
+++ b/community/gnome-clocks/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="Clock application designed for GNOME 3"
 url="https://wiki.gnome.org/Apps/Clocks"
-arch="all !s390x !mips !mips64" # missing: libhandy
+# s390x, mips64 and riscv64 blocked by rust -> libhandy
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="gsettings-desktop-schemas"
 makedepends="meson glib-dev gtk+3.0-dev libgweather-dev gsound-dev gnome-desktop-dev
diff --git a/community/gnome-control-center/APKBUILD b/community/gnome-control-center/APKBUILD
index e235664edb5e..36e784c43c73 100644
--- a/community/gnome-control-center/APKBUILD
+++ b/community/gnome-control-center/APKBUILD
@@ -5,8 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="GNOME control center"
 url="https://gitlab.gnome.org/GNOME/gnome-control-center"
-# limited by gnome-online-accounts
-arch="all !s390x !mips !mips64"
+# s390x, mips64 and riscv64 blocked by polkit
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="cups-pk-helper openrc-settingsd dbus:org.freedesktop.Secrets"
 makedepends="
@@ -44,7 +44,7 @@ makedepends="
 	ibus-dev"
 options="!check" # needs unpackaged py-dbusmock
 install="$pkgname.pre-install $pkgname.pre-upgrade"
-subpackages="$pkgname-dev $pkgname-lang $pkgname-dbg $pkgname-doc $pkgname-bash-completion"
+subpackages="$pkgname-dbg $pkgname-dev $pkgname-lang $pkgname-doc $pkgname-bash-completion"
 source="https://download.gnome.org/sources/gnome-control-center/${pkgver%.*}/gnome-control-center-$pkgver.tar.xz
 	README.alpine
 	"
diff --git a/community/gnome-disk-utility/APKBUILD b/community/gnome-disk-utility/APKBUILD
index b7fbcd48c46f..e9a48f914b95 100644
--- a/community/gnome-disk-utility/APKBUILD
+++ b/community/gnome-disk-utility/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="GNOME libraries and applications for dealing with storage devices"
 url="https://wiki.gnome.org/Apps/Disks"
-arch="all !s390x !mips !mips64"
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 # Uses udisks_client that calls dbus /org/freedesktop/UDisks2/Manager
 depends="gptfdisk parted udisks2"
diff --git a/community/gnome-flashback/APKBUILD b/community/gnome-flashback/APKBUILD
index 79d9a93bb712..aae1527bf427 100644
--- a/community/gnome-flashback/APKBUILD
+++ b/community/gnome-flashback/APKBUILD
@@ -5,7 +5,9 @@ pkgver=3.38.0
 pkgrel=0
 pkgdesc="GNOME Flashback is a GNOME session providing a similiar experience to GNOME 2.x"
 url="https://wiki.gnome.org/Projects/GnomeFlashback"
-arch="all !s390x !ppc64le !armhf !mips !mips64" # missing dep: gnome-panel on s390x/ppc64le/armhf
+# s390x, mips64 and riscv64 blocked by polkit
+# armhf and ppc64le blocked by gnome-panel
+arch="all !s390x !ppc64le !armhf !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="gsettings-desktop-schemas xkeyboard-config"
 makedepends="gtk+3.0-dev gnome-desktop-dev gnome-panel-dev libcanberra-dev
diff --git a/community/gnome-font-viewer/APKBUILD b/community/gnome-font-viewer/APKBUILD
index 05e3e2d20304..58cb5202bd7e 100644
--- a/community/gnome-font-viewer/APKBUILD
+++ b/community/gnome-font-viewer/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="View fonts on your system"
 url="https://gitlab.gnome.org/GNOME/gnome-font-viewer"
-arch="all !s390x !mips64" # libhandy
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later AND LGPL-2.1-or-later"
 makedepends="glib-dev gtk+3.0-dev harfbuzz-dev fontconfig-dev freetype-dev
 	gnome-desktop-dev meson libhandy1-dev"
diff --git a/community/gnome-initial-setup/APKBUILD b/community/gnome-initial-setup/APKBUILD
index bf8b81e10d4f..4c9c3dae3232 100644
--- a/community/gnome-initial-setup/APKBUILD
+++ b/community/gnome-initial-setup/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.1
 pkgrel=0
 pkgdesc="A simple, easy,and safe way to prepare a new system"
 url="https://wiki.gnome.org/Design/OS/InitialSetup"
-arch="all !armhf !s390x !ppc64le !mips !mips64" # limited by gnome-shell&mutter
+# s390x, mips64 and riscv64 blocked by webkit2gtk
+arch="all !armhf !s390x !ppc64le !mips64 !riscv64" # limited by gnome-shell&mutter
 license="GPL-2.0-or-later"
 depends="gsettings-desktop-schemas iso-codes dbus:org.freedesktop.Secrets"
 makedepends="meson cheese-dev ibus-dev networkmanager-dev polkit-dev
diff --git a/community/gnome-music/APKBUILD b/community/gnome-music/APKBUILD
index 19fd957b2324..9248f8c46ba5 100644
--- a/community/gnome-music/APKBUILD
+++ b/community/gnome-music/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=1
 pkgdesc="Music is the new GNOME music playing application"
 url="https://wiki.gnome.org/Apps/Music"
-arch="all !s390x !mips !mips64"
+# s390x, mips64 and riscv64 blocked by polkit -> tracker
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="grilo grilo-plugins gnome-online-accounts libdazzle libsoup py3-gobject3
 	tracker libmediaart py3-cairo gst-plugins-good tracker-miners"
@@ -13,7 +14,7 @@ makedepends="meson gnome-online-accounts-dev libdazzle-dev gtk+3.0-dev libsoup-d
 	gobject-introspection-dev grilo-dev grilo-plugins-dev tracker-dev py3-gobject3-dev
 	libmediaart-dev py3-cairo-dev itstool"
 checkdepends="desktop-file-utils appstream-glib"
-subpackages="$pkgname-lang $pkgname-doc $pkgname-dbg"
+subpackages="$pkgname-dbg $pkgname-lang $pkgname-doc"
 source="https://download.gnome.org/sources/gnome-music/${pkgver%.*}/gnome-music-$pkgver.tar.xz"
 
 build() {
diff --git a/community/gnome-panel/APKBUILD b/community/gnome-panel/APKBUILD
index 57701e1441b7..9c29b0abecfc 100644
--- a/community/gnome-panel/APKBUILD
+++ b/community/gnome-panel/APKBUILD
@@ -5,7 +5,8 @@ pkgver=3.38.0
 pkgrel=1
 pkgdesc="Gnome Panel provides panels and default applets for the gnome-flashback desktop"
 url="https://wiki.gnome.org/Projects/GnomePanel"
-arch="all !s390x !ppc64le !armhf !mips !mips64" # missing dep: gdm
+# s390x, mips64 and riscv64 blocked by polkit -> gdm
+arch="all !s390x !ppc64le !armhf !mips64 !riscv64"
 license="GPL-2.0-or-later"
 makedepends="gnome-desktop gtk+3.0-dev glib-dev pango-dev libwnck3-dev
 	gnome-menus-dev evolution-data-server-dev libgweather-dev dconf-dev
diff --git a/community/gnome-passwordsafe/APKBUILD b/community/gnome-passwordsafe/APKBUILD
index c83d605c53dc..61ed7524309c 100644
--- a/community/gnome-passwordsafe/APKBUILD
+++ b/community/gnome-passwordsafe/APKBUILD
@@ -5,7 +5,8 @@ pkgver=5.0
 pkgrel=1
 pkgdesc="A password manager for GNOME"
 url="https://gitlab.gnome.org/World/PasswordSafe"
-arch="noarch !s390x !mips !mips64" # Limited by py3-keepass
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="noarch !s390x !mips64 !riscv64"
 license="GPL-3.0-only"
 depends="python3 py3-keepass>=3.2.1 py3-pycryptodomex libhandy1 py3-libpwquality py3-gobject3"
 makedepends="meson gtk+3.0-dev libhandy1-dev libpwquality-dev gobject-introspection-dev"
diff --git a/community/gnome-photos/APKBUILD b/community/gnome-photos/APKBUILD
index e82e5693ccc9..606699837df9 100644
--- a/community/gnome-photos/APKBUILD
+++ b/community/gnome-photos/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="Access, organize and share your photos on GNOME"
 url="https://wiki.gnome.org/Apps/Photos"
-arch="all !s390x !mips !mips64" # Limited by gegl-dev
+# s390x, mips64 and riscv64 blocked by librsvg -> gegl
+arch="all !s390x !mips64 !riscv64"
 license="GPL-3.0-or-later"
 depends="gsettings-desktop-schemas tracker-miners"
 makedepends="meson babl-dev cairo-dev gtk+3.0-dev gexiv2-dev glib-dev
diff --git a/community/gnome-screenshot/APKBUILD b/community/gnome-screenshot/APKBUILD
index 408304cc326f..0fdb75a8dce3 100644
--- a/community/gnome-screenshot/APKBUILD
+++ b/community/gnome-screenshot/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="Screenshot capture utility for GNOME"
 url="https://gitlab.gnome.org/GNOME/gnome-screenshot"
-arch="all !s390x !mips64" # libhandy1
+# s390x, mips64 and riscv64 blocked by rust -> libhandy1
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="desktop-file-utils"
 makedepends="meson libcanberra-dev glib-dev itstool appstream-glib-dev
diff --git a/community/gnome-session/APKBUILD b/community/gnome-session/APKBUILD
index a02658dfb4c6..72112b8fd496 100644
--- a/community/gnome-session/APKBUILD
+++ b/community/gnome-session/APKBUILD
@@ -5,7 +5,8 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="GNOME session manager"
 url="https://gitlab.gnome.org/GNOME/gnome-session"
-arch="all !s390x !ppc64le !mips !mips64"
+# s390x, mips64 and riscv64 blocked by polkit -> upower
+arch="all !s390x !ppc64le !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends="polkit alsa-plugins-pulse dconf pulseaudio-alsa bash gnome-shell"
 makedepends="gnome-settings-daemon-dev libsm-dev
diff --git a/community/gnome-terminal/APKBUILD b/community/gnome-terminal/APKBUILD
index adbb6e0163ca..8e591a74809e 100644
--- a/community/gnome-terminal/APKBUILD
+++ b/community/gnome-terminal/APKBUILD
@@ -5,7 +5,8 @@ pkgver=3.40.0
 pkgrel=0
 pkgdesc="GNOME terminal emulator application"
 url="https://wiki.gnome.org/Apps/Terminal"
-arch="all !s390x !armhf !ppc64le !mips !mips64" # limited by gnome-shell
+# s390x, mips64 and riscv64 blocked by polkit -> gnome-shell
+arch="all !s390x !armhf !ppc64le !mips64 !riscv64"
 license="GPL-2.0-or-later AND GFDL-1.3-only"
 depends="dbus desktop-file-utils gsettings-desktop-schemas ncurses-terminfo-base"
 makedepends="dconf-dev gnome-shell gsettings-desktop-schemas-dev nautilus-dev vte3-dev
diff --git a/community/gnome-tweaks/APKBUILD b/community/gnome-tweaks/APKBUILD
index 2e7a6fe02ff6..f1c5a4937aa2 100644
--- a/community/gnome-tweaks/APKBUILD
+++ b/community/gnome-tweaks/APKBUILD
@@ -5,7 +5,9 @@ pkgver=40.0
 pkgrel=0
 pkgdesc="GNOME3 tool to customize advanced options"
 url="https://wiki.gnome.org/Apps/Tweaks"
-arch="noarch !s390x !armv7 !mips !mips64" # mutter is missing
+# s390x, mips64 and riscv64 blocked by rust -> libhandy
+# armv7 blocked by mutter
+arch="noarch !s390x !armv7 !mips64 !riscv64"
 license="GPL-3.0-or-later CC0-1.0"
 depends="gtk+3.0 dconf gnome-settings-daemon mutter libnotify py3-gobject3
 	libhandy1"
diff --git a/community/gnumeric/APKBUILD b/community/gnumeric/APKBUILD
index fdccb51c91ae..e86fba4610c0 100644
--- a/community/gnumeric/APKBUILD
+++ b/community/gnumeric/APKBUILD
@@ -4,9 +4,9 @@ pkgver=1.12.49
 pkgrel=0
 pkgdesc="GNOME Spreadsheet Program"
 url="https://www.gnome.org/projects/gnumeric"
-arch="all !s390x !mips !mips64"
+# s390x, mips64 and riscv64 blocked by librsvg -> goffice
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later OR GPL-3.0-or-later"
-options="!check" # failing tests
 makedepends="
 	autoconf
 	automake
@@ -32,6 +32,7 @@ checkdepends="
 	"
 subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
 source="https://download.gnome.org/sources/gnumeric/${pkgver%.*}/gnumeric-$pkgver.tar.xz"
+options="!check" # failing tests
 
 prepare() {
 	default_prepare
diff --git a/community/grantlee-editor/APKBUILD b/community/grantlee-editor/APKBUILD
index 05cef74fbb4b..a4882d77ec26 100644
--- a/community/grantlee-editor/APKBUILD
+++ b/community/grantlee-editor/APKBUILD
@@ -3,11 +3,33 @@
 pkgname=grantlee-editor
 pkgver=21.04.2
 pkgrel=0
-arch="all !ppc64le !s390x !armhf !mips !mips64" # Limited by qt5-qtwebengine
-url="https://kontact.kde.org/"
 pkgdesc="Utilities and tools to manage themes in KDE PIM applications "
+# armhf blocked by extra-cmake-modules
+# ppc64le, s390x, mips64 and riscv64 blocked by qt5-qtwebengine
+arch="all !armhf !ppc64le !s390x !mips64 !riscv64"
+url="https://kontact.kde.org/"
 license="GPL-2.0-or-later AND GFDL-1.2-only"
-makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtwebengine-dev kcrash-dev kdbusaddons-dev kdoctools-dev kxmlgui-dev ktexteditor-dev knewstuff-dev karchive-dev pimcommon-dev messagelib-dev grantleetheme-dev akonadi-mime-dev libkleo-dev kimap-dev kpimtextedit-dev syntax-highlighting-dev qgpgme"
+makedepends="
+	akonadi-mime-dev
+	extra-cmake-modules
+	grantleetheme-dev
+	karchive-dev
+	kcrash-dev
+	kdbusaddons-dev
+	kdoctools-dev
+	kimap-dev
+	knewstuff-dev
+	kpimtextedit-dev
+	ktexteditor-dev
+	kxmlgui-dev
+	libkleo-dev
+	messagelib-dev
+	pimcommon-dev
+	qgpgme
+	qt5-qtbase-dev
+	qt5-qtwebengine-dev
+	syntax-highlighting-dev
+	"
 source="https://download.kde.org/stable/release-service/$pkgver/src/grantlee-editor-$pkgver.tar.xz"
 subpackages="$pkgname-doc $pkgname-lang"
 
@@ -25,7 +47,7 @@ check() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="
diff --git a/community/gtkmm4/APKBUILD b/community/gtkmm4/APKBUILD
index 517fa9aa4a61..058864f1be2f 100644
--- a/community/gtkmm4/APKBUILD
+++ b/community/gtkmm4/APKBUILD
@@ -5,20 +5,20 @@ pkgver=4.0.2
 pkgrel=0
 pkgdesc="C++ wrappers for GTK 4"
 url="https://www.gtkmm.org/"
-# s390x, mips64: gtk4.0 not available
-arch="all !s390x !mips64"
+# s390x, mips64 and riscv64 blocked by polkit -> gtk4.0
+arch="all !s390x !mips64 !riscv64"
 license="LGPL-2.1-or-later"
 makedepends="
-	meson
-	gtk4.0-dev
+	atkmm2.36-dev
 	cairomm1.16-dev
-	pangomm2.48-dev
+	doxygen
 	gdk-pixbuf-dev
-	atkmm2.36-dev
 	glibmm2.68-dev
-	doxygen
 	graphviz
+	gtk4.0-dev
 	m4
+	meson
+	pangomm2.48-dev
 	perl
 	"
 checkdepends="xvfb-run"
diff --git a/community/gtksourceview5/APKBUILD b/community/gtksourceview5/APKBUILD
index 11c3687950b6..f6e7ac055bee 100644
--- a/community/gtksourceview5/APKBUILD
+++ b/community/gtksourceview5/APKBUILD
@@ -5,7 +5,8 @@ pkgver=5.0.0
 pkgrel=0
 pkgdesc="A text widget adding syntax highlighting and more to GNOME"
 url="https://wiki.gnome.org/Projects/GtkSourceView"
-arch="all !s390x !mips64" # blocked by glade -> webkit2gtk
+# s390x, mips64 and riscv64 blocked by librsvg -> glade
+arch="all !s390x !mips64 !riscv64"
 license="GPL-2.0-or-later"
 depends_dev="gtk4.0-dev libxml2-dev"
 makedepends="$depends_dev gobject-introspection-dev vala libxslt meson glade-dev
diff --git a/community/kblocks/APKBUILD b/community/kblocks/APKBUILD
index acc51c8b2c83..ad8ef83d94bb 100644
--- a/community/kblocks/APKBUILD
+++ b/community/kblocks/APKBUILD
@@ -3,7 +3,9 @@
 pkgname=kblocks
 pkgver=21.04.2
 pkgrel=0
-arch="all !armhf !s390x !mips !mips64" # armhf blocked by extra-cmake-modules, everything else by rust
+# armhf blocked by extra-cmake-modules
+# s390x, mips64 and riscv64 blocked by polkit -> kxmlgui
+arch="all !armhf !s390x !mips64 !riscv64"
 url="https://kde.org/applications/games/kblocks/"
 pkgdesc="The classic falling blocks game"
 license="GPL-2.0-or-later AND GFDL-1.2-only"
diff --git a/community/kcalc/APKBUILD b/community/kcalc/APKBUILD
index 43b499419a2c..b47a031f53ea 100644
--- a/community/kcalc/APKBUILD
+++ b/community/kcalc/APKBUILD
@@ -4,7 +4,7 @@ pkgname=kcalc
 pkgver=21.04.2
 pkgrel=0
 # armhf blocked by extra-cmake-modules
-# s390x blocked by kxmlgui
+# s390x, mips64 and riscv64 blocked by polkit -> kxmlgui
 arch="all !armhf !s390x !mips64"
 url="https://kde.org/applications/utilities/org.kde.kcalc"
 pkgdesc="Scientific Calculator"
@@ -41,7 +41,7 @@ check() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="
diff --git a/community/kcharselect/APKBUILD b/community/kcharselect/APKBUILD
index 64d299a8f6ab..989b67ad2db2 100644
--- a/community/kcharselect/APKBUILD
+++ b/community/kcharselect/APKBUILD
@@ -4,7 +4,7 @@ pkgname=kcharselect
 pkgver=21.04.2
 pkgrel=0
 # armhf blocked by extra-cmake-modules
-# s390x blocked by kxmlgui
+# s390x, mips64 and riscv64 blocked by polkit -> kxmlgui
 arch="all !armhf !s390x !mips64"
 url="https://kde.org/applications/utilities/org.kde.kcharselect"
 pkgdesc="A tool to select special characters from all installed fonts and copy them into the clipboard"
@@ -37,7 +37,7 @@ check() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="
diff --git a/community/kdenlive/APKBUILD b/community/kdenlive/APKBUILD
index 06a31eff2a26..35ef41199adb 100644
--- a/community/kdenlive/APKBUILD
+++ b/community/kdenlive/APKBUILD
@@ -3,9 +3,9 @@
 pkgname=kdenlive
 pkgver=21.04.2
 pkgrel=0
-# s390x kdeclarative-dev knewstuff-dev knotifyconfig-dev kxmlgui-dev purpose-dev
+# s390x, mips64 and riscv64 blocked by polkit -> kxmlgui
 # ppc64le mlt uses 64bit long double while libgcc uses 128bit long double
-arch="all !armhf !s390x !ppc64le !mips64"
+arch="all !armhf !s390x !ppc64le !mips64 !riscv64"
 url="https://kdenlive.org"
 pkgdesc="An intuitive and powerful multi-track video editor, including most recent video technologies"
 license="GPL-2.0-or-later"
diff --git a/community/kdepim-addons/APKBUILD b/community/kdepim-addons/APKBUILD
index f2115052b223..890901fcd60e 100644
--- a/community/kdepim-addons/APKBUILD
+++ b/community/kdepim-addons/APKBUILD
@@ -4,8 +4,8 @@ pkgname=kdepim-addons
 pkgver=21.04.2
 pkgrel=0
 # armhf blocked by extra-cmake-modules
-# ppc64le, s390x and mips blocked by kdepim-addons
-arch="all !ppc64le !s390x !armhf !mips !mips64"
+# ppc64le, s390x, mips64 and riscv64 blocked by qt5-qtwebengine
+arch="all !armhf !ppc64le !s390x !mips64 !riscv64"
 url="https://kontact.kde.org/"
 pkgdesc="Addons for KDE PIM applications"
 license="GPL-2.0-or-later AND LGPL-2.0-or-later"
@@ -77,7 +77,7 @@ check() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="
diff --git a/community/kdeplasma-applets-xrdesktop/APKBUILD b/community/kdeplasma-applets-xrdesktop/APKBUILD
index 375f059dfde2..4fa5d3b00a2a 100644
--- a/community/kdeplasma-applets-xrdesktop/APKBUILD
+++ b/community/kdeplasma-applets-xrdesktop/APKBUILD
@@ -5,8 +5,9 @@ pkgver=0.15.0
 pkgrel=0
 pkgdesc="xrdesktop applet for KDE Plasma"
 url="https://gitlab.freedesktop.org/xrdesktop/kdeplasma-applets-xrdesktop"
-# mips64, s390x and ppc64le blocked by polkit and kwin-effect-xrdesktop. armhf: kwin-effect-xrdesktop
-arch="noarch !s390x !ppc64le !armhf !mips64"
+# armhf blocked by extra-cmake-modules
+# mips64, s390x, ppc64le and riscv64 blocked by polkit -> kwin-effect-xrdesktop
+arch="noarch !armhf !s390x !ppc64le !mips64 !riscv64"
 license="MIT"
 depends="
 	kwin-effect-xrdesktop
@@ -30,7 +31,7 @@ build() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="d4988d397fe74a5f7de534c9206d54832ec6e93f596cb8e387f39000e3090ae89db89b01eab138d3d559c8a4e141142b37cf452b171d9bfb76707e01c64989c0  kdeplasma-applets-xrdesktop-0.15.0.tar.gz"
diff --git a/community/kdiamond/APKBUILD b/community/kdiamond/APKBUILD
index 811ff6e0ef25..4be9a1914567 100644
--- a/community/kdiamond/APKBUILD
+++ b/community/kdiamond/APKBUILD
@@ -4,10 +4,27 @@ pkgname=kdiamond
 pkgver=21.04.2
 pkgrel=0
 pkgdesc="A single player puzzle game"
-arch="all !armhf !s390x !mips64" # armhf blocked by extra-cmake-modules
+# armhf blocked by extra-cmake-modules
+# s390x, mips64 and riscv64 blocked by polkit -> kxmlgui
+arch="all !armhf !s390x !mips64 !riscv64"
 url="https://kde.org/applications/games/kdiamond/"
 license="GPL-2.0-or-later AND GFDL-1.2-only"
-makedepends="extra-cmake-modules qt5-qtbase-dev kcoreaddons-dev kconfig-dev kcrash-dev kdbusaddons-dev kdoctools-dev kwidgetsaddons-dev ki18n-dev kconfigwidgets-dev kxmlgui-dev knotifications-dev knotifyconfig-dev libkdegames-dev"
+makedepends="
+	extra-cmake-modules
+	kconfig-dev
+	kconfigwidgets-dev
+	kcoreaddons-dev
+	kcrash-dev
+	kdbusaddons-dev
+	kdoctools-dev
+	ki18n-dev
+	knotifications-dev
+	knotifyconfig-dev
+	kwidgetsaddons-dev
+	kxmlgui-dev
+	libkdegames-dev
+	qt5-qtbase-dev
+	"
 source="https://download.kde.org/stable/release-service/$pkgver/src/kdiamond-$pkgver.tar.xz"
 subpackages="$pkgname-doc $pkgname-lang"
 options="!check" # No tests
@@ -21,7 +38,7 @@ build() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="
diff --git a/community/kgamma5/APKBUILD b/community/kgamma5/APKBUILD
index ff625b7338b6..cedf0edeff16 100644
--- a/community/kgamma5/APKBUILD
+++ b/community/kgamma5/APKBUILD
@@ -5,8 +5,8 @@ pkgver=5.22.2.1
 pkgrel=0
 pkgdesc="Adjust your monitor's gamma settings"
 # armhf blocked by extra-cmake-modules
-# s390x blocked by kconfigwidgets
-arch="all !armhf !s390x !mips64"
+# s390x, mips64 and riscv64 blocked by polkit -> kconfigwidgets
+arch="all !armhf !s390x !mips64 !riscv64"
 url="https://kde.org/plasma-desktop/"
 license="GPL-2.0-or-later"
 makedepends="
diff --git a/community/kgx/APKBUILD b/community/kgx/APKBUILD
index f4bdb4d4927c..4486b26ac768 100644
--- a/community/kgx/APKBUILD
+++ b/community/kgx/APKBUILD
@@ -5,7 +5,9 @@ pkgver=0.2.1
 pkgrel=2
 pkgdesc="A minimal terminal for GNOME"
 url="https://gitlab.gnome.org/ZanderBrown/kgx"
-arch="all !s390x !ppc64le !mips !mips64" # !s390x !ppc64le due gnome-shell
+# s390x, mips64 and riscv64 blocked by rust -> libhandy
+# ppc64le blocked by gnome-shell
+arch="all !s390x !ppc64le !mips64 !riscv64"
 license="GPL-3.0-only"
 options="!check" # Tests require GIR
 depends="dbus desktop-file-utils gsettings-desktop-schemas"
diff --git a/community/khelpcenter/APKBUILD b/community/khelpcenter/APKBUILD
index 520cd539dfed..a08ab73843ef 100644
--- a/community/khelpcenter/APKBUILD
+++ b/community/khelpcenter/APKBUILD
@@ -4,10 +4,29 @@ pkgname=khelpcenter
 pkgver=21.04.2
 pkgrel=0
 pkgdesc="Application to show KDE Applications' documentation"
-arch="all !armhf !s390x !mips64" # armhf blocked by extra-cmake-modules
+# armhf blocked by extra-cmake-modules
+# s390x, mips64 and riscv64 blocked by polkit -> khtml
+arch="all !armhf !s390x !mips64 !riscv64"
 url="https://userbase.kde.org/KHelpCenter"
 license="GPL-2.0-or-later AND GFDL-1.2-only"
-makedepends="extra-cmake-modules qt5-qtbase-dev karchive-dev kbookmarks-dev kconfig-dev kcoreaddons-dev kdbusaddons-dev kdoctools-dev ki18n-dev kinit-dev khtml-dev kservice-dev kwindowsystem-dev grantlee-dev xapian-core-dev libxml2-dev"
+makedepends="
+	extra-cmake-modules
+	grantlee-dev
+	karchive-dev
+	kbookmarks-dev
+	kconfig-dev
+	kcoreaddons-dev
+	kdbusaddons-dev
+	kdoctools-dev
+	khtml-dev
+	ki18n-dev
+	kinit-dev
+	kservice-dev
+	kwindowsystem-dev
+	libxml2-dev
+	qt5-qtbase-dev
+	xapian-core-dev
+	"
 source="https://download.kde.org/stable/release-service/$pkgver/src/khelpcenter-$pkgver.tar.xz"
 subpackages="$pkgname-doc $pkgname-lang"
 
@@ -25,7 +44,7 @@ check() {
 }
 
 package() {
-	DESTDIR="$pkgdir" cmake --build build --target install
+	DESTDIR="$pkgdir" cmake --install build
 }
 
 sha512sums="
-- 
GitLab