diff --git a/community/ocamlbuild/APKBUILD b/community/ocamlbuild/APKBUILD
index 37f481e68d2524da6526e74e76005dd24ea8e721..23a634bae31dd89af77bd10ee7097cc6640ab370 100644
--- a/community/ocamlbuild/APKBUILD
+++ b/community/ocamlbuild/APKBUILD
@@ -7,7 +7,7 @@ pkgver=0.14.1
 pkgrel=1
 pkgdesc="Generic build tool with built-in rules for building OCaml library and programs"
 url="https://github.com/ocaml/ocamlbuild"
-arch="all"
+arch="all !riscv64"
 license="LGPL-2.0-or-later-WITH-linking-exception"
 checkdepends="ocaml-compiler-libs ocaml-findlib"
 depends="ocaml-$pkgname=$pkgver-r$pkgrel cmd:tput"