Date: Sunday, September 8, 2019 @ 11:27:49 Author: arojas Revision: 362042
Install qtwebengine dictionaries Modified: hunspell-ro/trunk/PKGBUILD ----------+ PKGBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-09-08 11:26:16 UTC (rev 362041) +++ PKGBUILD 2019-09-08 11:27:49 UTC (rev 362042) @@ -2,12 +2,13 @@ pkgname=hunspell-ro pkgver=3.3.10 -pkgrel=2 +pkgrel=3 pkgdesc="Romanian dictionary for Hunspell" arch=('any') url="https://sourceforge.net/projects/rospell/" license=('LGPL' 'GPL' 'MPL') depends=('hunspell') +makedepends=('qt5-webengine') source=(https://downloads.sourceforge.net/rospell/ro_RO.$pkgver.zip) sha512sums=('192d53fc087fb96306c46092a2b5cac9c28528f741c686d3b5e80c11c7bfdd16e1e406cfc1c32a99d72e2db01722e539b28c716379f38a3703e6954c8f9f2170') @@ -25,4 +26,11 @@ ln -sv /usr/share/hunspell/$(basename $file) . done popd + +# Install webengine dictionaries + install -d "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/ + for _file in "$pkgdir"/usr/share/hunspell/*.dic; do + _filename=$(basename $_file) + qwebengine_convert_dict $_file "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/${_filename/\.dic/\.bdic} + done }