[arch-commits] Commit in hunspell-fr/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Sep 8 11:35:05 UTC 2019
Date: Sunday, September 8, 2019 @ 11:35:05
Author: arojas
Revision: 362046
Update to 6.4.1, install qtwebengine dictionaries
Modified:
hunspell-fr/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-08 11:32:25 UTC (rev 362045)
+++ PKGBUILD 2019-09-08 11:35:05 UTC (rev 362046)
@@ -1,18 +1,18 @@
# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
pkgname=hunspell-fr
-pkgver=6.3
+pkgver=6.4.1
pkgrel=1
pkgdesc='French (modern) hunspell dictionaries'
arch=(any)
url='https://grammalecte.net/download.php?prj=fr'
license=('MPL2')
+makedepends=('qt5-webengine')
optdepends=('hunspell: the spell checking libraries and apps')
source=("https://grammalecte.net/download/fr/${pkgname/-fr/}-french-dictionaries-v${pkgver}.zip")
-sha256sums=('cc6c2d15073659d221487b45245e9eee9a4ed66c30c6dcf784326bab063c5266')
+sha256sums=('744e77a3bd115144fa3131485231638d41c21e65ed757bfc576ccec1dcc9c6cc')
package() {
- cd "${srcdir}"
install -dm755 "${pkgdir}"/usr/share/hunspell
install -m644 fr-moderne.dic "${pkgdir}"/usr/share/hunspell/fr_FR.dic
install -m644 fr-moderne.aff "${pkgdir}"/usr/share/hunspell/fr_FR.aff
@@ -36,4 +36,11 @@
# docs
install -Dm644 README_dict_fr.txt "${pkgdir}"/usr/share/doc/${pkgname}/README_dict_fr.txt
+
+# 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
}
More information about the arch-commits
mailing list