diff --git a/community/ghex/APKBUILD b/community/ghex/APKBUILD
index bf8f66e00d4f203b49d7ac86c1cce01f909f6a8f..8214be40359d0391c95260bda1350cbd4bfb806a 100644
--- a/community/ghex/APKBUILD
+++ b/community/ghex/APKBUILD
@@ -1,15 +1,15 @@
 # Contributor: August Klein <amatcoder@gmail.com>
 # Maintainer: August Klein <amatcoder@gmail.com>
 pkgname=ghex
-pkgver=3.41.1
+pkgver=42.2
 _pkgver=${pkgver%.*}
 pkgrel=0
 pkgdesc="A hex editor for GNOME"
 url="https://wiki.gnome.org/Apps/Ghex"
-arch="all"
+arch="all !s390x !riscv64" # gtk4.0
 license="GPL-2.0-or-later"
 depends="dconf"
-makedepends="meson itstool gtk+3.0-dev glib-dev atk-dev"
+makedepends="desktop-file-utils meson itstool gtk4.0-dev glib-dev atk-dev"
 subpackages="$pkgname-dev $pkgname-lang $pkgname-doc"
 source="https://download.gnome.org/sources/ghex/$_pkgver/ghex-$pkgver.tar.xz"
 
@@ -18,10 +18,14 @@ build() {
 	meson compile ${JOBS:+-j ${JOBS}} -C output
 }
 
+check() {
+	meson test --no-rebuild -v -C output
+}
+
 package() {
 	DESTDIR="$pkgdir" meson install --no-rebuild -C output
 }
 
 sha512sums="
-5eccf81c41f5ae56bfe5eab0fb843db0095c75080e7dfc0b19a4c71f40f89931e1cbcd2c58744a6b249d16e2a2e4f96513aaac4c41f46d3b5ae8b2bc851851a0  ghex-3.41.1.tar.xz
+d7c64013d894d1803e03b1afc025a3f39fa65d156aaf7885e692b2b10574f320fb329abd8059a9c084c701a655d7708b8f0dec09f8300c8491fc75a66b475bf7  ghex-42.2.tar.xz
 "