# Template file for 'hunspell-ru_RU-ieyo' pkgname=hunspell-ru_RU-ieyo version=0.3.9 revision=5 short_desc="Russian dictionary for hunspell, variant with ie and yo" maintainer="Andrey Raugas " license="LGPL-2.1-only" homepage="http://extensions.openoffice.org/en/projectrelease/russkiy-orfograficheskiy-slovar-aot-eyo-russian-spellcheck-dict-ieyo-based-works" distfiles="${SOURCEFORGE_SITE}/project/aoo-extensions/5149/3/dict_ru_ru-aot-${version}-ieyo.oxt>dict-ru_RU-ieyo.zip" checksum=3b374cf18f00fd0a9b6514eb8413438ce5d425a2e04435ffd81d8acc7ee1e578 provides="hunspell-ru_RU-${version}_${revision}" replaces="hunspell-ru_RU>=0" build_options="bdic" desc_option_bdic="Enable Chromium's bdic format" if [ "$XBPS_WORDSIZE" = 64 ]; then hostmakedepends=" qt6-webengine" build_options_default="bdic" else case "$XBPS_MACHINE" in i686*) hostmakedepends=" qt5-webengine" build_options_default="bdic" ;; esac fi if [ "$build_option_bdic" ]; then depends="hunspell-qtwebengine-dict" fi do_build() { PATH="/usr/lib/qt6/libexec:/usr/lib/qt5/bin:$PATH" if [ "$build_option_bdic" ]; then qwebengine_convert_dict russian-aot-ieyo.dic \ ru_RU.bdic fi } do_install() { vinstall russian-aot-ieyo.aff 644 usr/share/hunspell ru_RU.aff vinstall russian-aot-ieyo.dic 644 usr/share/hunspell ru_RU.dic if [ "$build_option_bdic" ]; then vinstall ru_RU.bdic 644 usr/share/hunspell-bdic fi }