~alpine/aports

testing/marisa-trie: improved architecture checking switch v1 PROPOSED

Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/%3C20190907204640.1209-1-bribbers%40disroot.org%3E/mbox | git am -3
Learn more about email & git

[PATCH] testing/marisa-trie: improved architecture checking switch Export this patch

Bart Ribbers
A pkgrel bump isn't necessary as the build output doesn't change, but it'll improve the APKBUILD itself
---
 testing/marisa-trie/APKBUILD | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

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