diff options
author | ariasuni | 2020-11-23 14:43:55 +0100 |
---|---|---|
committer | ariasuni | 2020-11-23 14:53:45 +0100 |
commit | ab501880a8da7c95eda5e6abe5216768b765d915 (patch) | |
tree | 069418dc51c217f652f4c860a99d4255a5c6cb2b /PKGBUILD | |
parent | 38a0ef953b5f4f1307196df5af4fae2616fc3040 (diff) | |
download | aur-ab501880a8da7c95eda5e6abe5216768b765d915.tar.gz |
make it work again and gen dicts for Chromium/QtWebEngine
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -3,12 +3,12 @@ pkgbase='hunspell-fr-ungendered' pkgname=("$pkgbase"-{'classical','comprehensive','modern','revised'}) pkgver=6.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="French ungendered hunspell dictionary" arch=(any) -url="https://github.com/RadicaliseesSurInternet/hunspell-inclusif" +url="https://github.com/ariasuni/hunspell-inclusif" license=('MPL2') -makedepends=('python') +makedepends=('python' 'qt5-webengine') conflicts=('hunspell-fr') provides=('hunspell-fr') source=("${url}/archive/${pkgver}.tar.gz") @@ -61,4 +61,11 @@ _package() { popd install -Dm644 README.md "${pkgdir}"/usr/share/doc/${pkgname}/README.md + + # 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 } |