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 | |
parent | 38a0ef953b5f4f1307196df5af4fae2616fc3040 (diff) | |
download | aur-hunspell-fr-ungendered.tar.gz |
make it work again and gen dicts for Chromium/QtWebEngine
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 14 insertions, 6 deletions
@@ -1,14 +1,15 @@ pkgbase = hunspell-fr-ungendered pkgdesc = French ungendered hunspell dictionary pkgver = 6.4.1 - pkgrel = 1 - url = https://github.com/RadicaliseesSurInternet/hunspell-inclusif + pkgrel = 2 + url = https://github.com/ariasuni/hunspell-inclusif arch = any license = MPL2 makedepends = python + makedepends = qt5-webengine provides = hunspell-fr conflicts = hunspell-fr - source = https://github.com/RadicaliseesSurInternet/hunspell-inclusif/archive/6.4.1.tar.gz + source = https://github.com/ariasuni/hunspell-inclusif/archive/6.4.1.tar.gz sha256sums = 4b0325f5866def67314b99bda65709df1a965deb1939332e68890fd2d64e8b69 pkgname = hunspell-fr-ungendered-classical @@ -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 } |