[arch-commits] Commit in hunspell-es/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Sep 8 11:20:51 UTC 2019
Date: Sunday, September 8, 2019 @ 11:20:51
Author: arojas
Revision: 362038
Install qtwebengine dictionaries
Modified:
hunspell-es/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-08 09:16:53 UTC (rev 362037)
+++ PKGBUILD 2019-09-08 11:20:51 UTC (rev 362038)
@@ -4,11 +4,12 @@
pkgbase=hunspell-es
pkgname=(hunspell-es_any hyphen-es mythes-es)
pkgver=2.4
-pkgrel=1
+pkgrel=2
epoch=1
arch=(any)
url="https://github.com/sbosio/rla-es"
license=(LGPL3)
+makedepends=(qt5-webengine)
_countries=(
'AR "Argentina"'
'BO "Bolivia"'
@@ -75,16 +76,23 @@
LANG=en_US.utf8 bsdtar -xf es_$1.oxt
- install -dm755 "${pkgdir}/usr/share/hunspell"
+ install -dm755 "$pkgdir"/usr/share/hunspell
install -Dm644 es_$1.dic es_$1.aff "$pkgdir/usr/share/hunspell"
- install -d "${pkgdir}/usr/share/myspell/dicts"
+ install -d "$pkgdir"/usr/share/myspell/dicts
pushd "$pkgdir/usr/share/myspell/dicts"
- for file in "$pkgdir"/usr/share/hunspell/*; do
- ln -sv /usr/share/hunspell/$(basename $file) .
+ for _file in "$pkgdir"/usr/share/hunspell/*; do
+ 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
+
install -Dm644 README.txt -t "$pkgdir/usr/share/doc/$pkgname"
}
@@ -105,6 +113,13 @@
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
+
install -Dm644 README.txt -t "$pkgdir/usr/share/doc/$pkgname"
}
More information about the arch-commits
mailing list