[arch-commits] Commit in hunspell-nl/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Fri Oct 1 19:41:24 UTC 2021


    Date: Friday, October 1, 2021 @ 19:41:24
  Author: arojas
Revision: 1026563

Install qt6-webengine dictionaries

Modified:
  hunspell-nl/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-01 19:39:41 UTC (rev 1026562)
+++ PKGBUILD	2021-10-01 19:41:24 UTC (rev 1026563)
@@ -3,7 +3,7 @@
 
 pkgname=hunspell-nl
 pkgver=2.20.19
-pkgrel=1
+pkgrel=2
 pkgdesc="Dutch hunspell dictionaries"
 arch=('any')
 url="https://www.opentaal.org/"
@@ -10,7 +10,7 @@
 license=('BSD' 'custom:Creative Commons, Attribution 3.0 Unported')
 depends=('hunspell')
 optdepends=('hunspell:  the spell checking libraries and apps')
-makedepends=('unzip' 'qt5-webengine')
+makedepends=('unzip' 'qt6-webengine')
 # Upstream source http://opentaal.org/bestanden/license_result/20-woordenlijst-v-210g-voor-openofficeorg-3?bid=20&agree=1
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/OpenTaal/opentaal-hunspell/archive/${pkgver}.tar.gz)
 sha512sums=('19e93421da7096259c18f69dadcf49a2d9f16890edd8474ee226a39ae344803bfe4d3b952669fb1d42dcc28aed36582468f7a92c3289db18e2284be3f4889f40')
@@ -44,11 +44,11 @@
   # licences
   install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
 
- # Install webengine dictionaries
-  install -d "${pkgdir}"/usr/share/qt/qtwebengine_dictionaries/
-  qwebengine_convert_dict "${pkgdir}"/usr/share/hunspell/nl_NL.dic "${pkgdir}"/usr/share/qt/qtwebengine_dictionaries/nl_NL.bdic
-  cd "${pkgdir}"/usr/share/qt/qtwebengine_dictionaries/
-  for lang in ${nl_NL_aliases}; do
-    ln -s nl_NL.bdic ${lang}.bdic
+  # Install webengine dictionaries   
+  install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
+  for _file in "$pkgdir"/usr/share/hunspell/*.dic; do
+  _filename=$(basename $_file)
+    /usr/lib/qt6/qwebengine_convert_dict $_file "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
+  ln -rs "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/${_filename/\.dic/\.bdic} "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
   done
 }



More information about the arch-commits mailing list