Subject: [PATCH] testing/marisa-trie: fix building on non-x86 platforms

From: Bart Ribbers <[email-masked]>
Date: Sat, 7 Sep 2019 22:28:28 +0200

---
 testing/marisa-trie/APKBUILD | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/testing/marisa-trie/APKBUILD b/testing/marisa-trie/APKBUILD
index 3319201868..f966471e63 100644
--- a/testing/marisa-trie/APKBUILD
+++ b/testing/marisa-trie/APKBUILD
@@ -18,10 +18,20 @@ prepare() {
 }
 
 build() {
-	./configure \
-		--prefix=/usr \
-		--disable-static \
-		--enable-sse2
+	case "$CARCH" in
+		x86|x86_64)
+			./configure \
+				--prefix=/usr \
+				--disable-static \
+				--enable-sse2
+			;;
+		*)
+			./configure \
+				--prefix=/usr \
+				--disable-static
+			;;
+	esac
+
 	make
 }
 
-- 
2.23.0