diff --git a/testing/libyang/APKBUILD b/testing/libyang/APKBUILD
index 8c41b9117f68a24595694e786b57bf895e2f85ea..bf3d626875c9efab31b489a1cfaf647f3a27686d 100644
--- a/testing/libyang/APKBUILD
+++ b/testing/libyang/APKBUILD
@@ -6,7 +6,7 @@ _realver=${pkgver/_p/-r}
 pkgrel=0
 pkgdesc="YANG data modelling language parser and toolkit"
 url="https://github.com/CESNET/libyang"
-arch="all"
+arch="all !s390x"
 license="BSD-3-Clause-Clear"
 depends=""
 makedepends="bison cmake cmocka-dev flex pcre-dev"