From d2d868ce5ae5d29c122dbc5fe6e903038083f281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 18 Apr 2024 07:43:10 +0700 Subject: [PATCH] hunspell-*: build bdic on all 64bit host --- srcpkgs/hunspell-en_GB-ize/template | 16 ++++++++-------- srcpkgs/hunspell-pt_PT-preao/template | 15 ++++++++------- srcpkgs/hunspell-ru_RU-ieyo/template | 16 ++++++++-------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/srcpkgs/hunspell-en_GB-ize/template b/srcpkgs/hunspell-en_GB-ize/template index 124ec93fb56..9eb23053409 100644 --- a/srcpkgs/hunspell-en_GB-ize/template +++ b/srcpkgs/hunspell-en_GB-ize/template @@ -4,7 +4,6 @@ _vpkgname=${pkgname%-*} _variant=${pkgname##*-} version=2020.12.07 revision=2 -hostmakedepends="unzip" short_desc="English dictionary for hunspell ${_variant} variant" maintainer="Leah Neukirchen " license="SCOWL" # not in SPDX @@ -17,16 +16,17 @@ replaces="${_vpkgname}>=0" build_options="bdic" desc_option_bdic="Enable Chromium's bdic format" -case "$XBPS_MACHINE" in - x86_64*) - hostmakedepends+=" qt6-webengine" - build_options_default="bdic" - ;; +if [ "$XBPS_WORDSIZE" = 64 ]; then + hostmakedepends=" qt6-webengine" + build_options_default="bdic" +else + case "$XBPS_MACHINE" in i686*) - hostmakedepends+=" qt5-webengine" + hostmakedepends=" qt5-webengine" build_options_default="bdic" ;; -esac + esac +fi if [ "$build_option_bdic" ]; then depends="libreoffice-qtwebengine-dict" diff --git a/srcpkgs/hunspell-pt_PT-preao/template b/srcpkgs/hunspell-pt_PT-preao/template index a267eacdc28..4f328b60109 100644 --- a/srcpkgs/hunspell-pt_PT-preao/template +++ b/srcpkgs/hunspell-pt_PT-preao/template @@ -14,16 +14,17 @@ replaces="hunspell-pt_PT>=0" build_options="bdic" desc_option_bdic="Enable Chromium's bdic format" -case "$XBPS_MACHINE" in - x86_64*) - hostmakedepends+=" qt6-webengine" - build_options_default="bdic" - ;; +if [ "$XBPS_WORDSIZE" = 64 ]; then + hostmakedepends="qt6-webengine" + build_options_default="bdic" +else + case "$XBPS_MACHINE" in i686*) - hostmakedepends+=" qt5-webengine" + hostmakedepends="qt5-webengine" build_options_default="bdic" ;; -esac + esac +fi if [ "$build_option_bdic" ]; then depends="libreoffice-qtwebengine-dict" diff --git a/srcpkgs/hunspell-ru_RU-ieyo/template b/srcpkgs/hunspell-ru_RU-ieyo/template index dc8668c7473..8fcb59d7699 100644 --- a/srcpkgs/hunspell-ru_RU-ieyo/template +++ b/srcpkgs/hunspell-ru_RU-ieyo/template @@ -2,7 +2,6 @@ pkgname=hunspell-ru_RU-ieyo version=0.3.9 revision=4 -hostmakedepends="unzip" short_desc="Russian dictionary for hunspell, variant with ie and yo" maintainer="Andrey Raugas " license="LGPL-2.1-only" @@ -15,16 +14,17 @@ replaces="hunspell-ru_RU>=0" build_options="bdic" desc_option_bdic="Enable Chromium's bdic format" -case "$XBPS_MACHINE" in - x86_64*) - hostmakedepends+=" qt6-webengine" - build_options_default="bdic" - ;; +if [ "$XBPS_WORDSIZE" = 64 ]; then + hostmakedepends=" qt6-webengine" + build_options_default="bdic" +else + case "$XBPS_MACHINE" in i686*) - hostmakedepends+=" qt5-webengine" + hostmakedepends=" qt5-webengine" build_options_default="bdic" ;; -esac + esac +fi if [ "$build_option_bdic" ]; then depends="libreoffice-qtwebengine-dict"