New comment by chrysos349 on void-packages repository https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978409304 Comment: In a similar manner `hunspell-` templates can be modified, e.g. `hunspell-en_US`: ```diff diff --git a/srcpkgs/hunspell-en_US/template b/srcpkgs/hunspell-en_US/template index ce4df5e1a..2d60aa496 100644 --- a/srcpkgs/hunspell-en_US/template +++ b/srcpkgs/hunspell-en_US/template @@ -3,7 +3,7 @@ pkgname=hunspell-en_US version=2020.12.07 revision=1 create_wrksrc=yes -hostmakedepends="unzip" +hostmakedepends="unzip qt6-webengine" short_desc="American English en_US dictionary for hunspell" maintainer="Leah Neukirchen " license="SCOWL" # not in SPDX @@ -15,4 +15,15 @@ do_install() { vinstall en_US.aff 644 /usr/share/hunspell vinstall en_US.dic 644 /usr/share/hunspell vlicense README_en_US.txt SCOWL + + # add qtwebengine_dictionaries + vmkdir /usr/share/qt6/qtwebengine_dictionaries + vmkdir /usr/share/qt5/qtwebengine_dictionaries + for f in ${DESTDIR}/usr/share/hunspell/*.dic; do + fa=$(basename $f .dic) + /usr/lib/qt6/libexec/qwebengine_convert_dict $f \ + ${DESTDIR}/usr/share/qt6/qtwebengine_dictionaries/${fa}.bdic + ln -s /usr/share/qt6/qtwebengine_dictionaries/${fa}.bdic \ + ${DESTDIR}/usr/share/qt5/qtwebengine_dictionaries + done } ```