summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMunzir Taha2020-01-05 16:56:43 +0200
committerMunzir Taha2020-01-05 16:56:43 +0200
commitdeadc1ad608af3281cb7b830221923b644603542 (patch)
tree2134cbdf2f84d34362b177e31073ff8b3e934bc6
parent5fae8507257e69233e362c7f0610b3e9eed28a66 (diff)
downloadaur-hunspell-ar.tar.gz
Add qtwebengine_dictionaries
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD12
2 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8ce01026d3a..766643e6d78 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = hunspell-ar
pkgdesc = Arabic dictionary for hunspell
pkgver = 3.5
- pkgrel = 1
+ pkgrel = 2
url = http://ayaspell.sourceforge.net
arch = any
license = GPL
license = LGPL
license = MPL
+ makedepends = qt5-webengine
optdepends = hunspell: the spell checking libraries and apps
- source = http://downloads.sourceforge.net/project/ayaspell/hunspell-ar_3.5.zip
+ source = http://downloads.sourceforge.net/project/ayaspell/hunspell-ar_3.5.2014-11-08.zip
sha256sums = 966faf94e7d05d52e9afdd20b266e28932edf5b32fe26aa83d554d6a2c6021ea
pkgname = hunspell-ar
diff --git a/PKGBUILD b/PKGBUILD
index bda6198d33c..921f6d1c068 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,12 @@
# Maintainer: Munzir Taha <munzirtaha at gmail dot com>
pkgname=hunspell-ar
pkgver=3.5
-pkgrel=1
+pkgrel=2
pkgdesc="Arabic dictionary for hunspell"
arch=(any)
url="http://ayaspell.sourceforge.net"
license=('GPL' 'LGPL' 'MPL')
+makedepends=('qt5-webengine')
optdepends=('hunspell: the spell checking libraries and apps')
source=(http://downloads.sourceforge.net/project/ayaspell/${pkgname}_${pkgver}.2014-11-08.zip)
sha256sums=('966faf94e7d05d52e9afdd20b266e28932edf5b32fe26aa83d554d6a2c6021ea')
@@ -16,17 +17,22 @@ build() {
package() {
cd "$srcdir"
- install -d $pkgdir/usr/share/hunspell
+ install -d "$pkgdir"/usr/share/{hunspell,qt/qtwebengine_dictionaries}
install -D -m644 ar.dic ar.aff $pkgdir/usr/share/hunspell/
pushd $pkgdir/usr/share/hunspell/
- ar_aliases="ar_AE ar_BH ar_DZ ar_EG ar_IN ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA ar_OM ar_QA ar_SA ar_SD ar_SY ar_TN ar_YE"
+ ar_aliases="ar_AE ar_BH ar_DZ ar_EG ar_IN ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA ar_OM ar_QA ar_SA ar_SD ar_SY ar_TN ar_YE"
for lang in $ar_aliases; do
ln -s ar.aff $lang.aff
ln -s ar.dic $lang.dic
done
popd
+ # FIXME: tested with Falkon but Arabic spell is not working
+ # Install webengine dictionary; the IGNORE command is not supported by bdic
+ sed -i '/^IGNORE/d' ar.aff
+ qwebengine_convert_dict ar.dic "$pkgdir/usr/share/qt/qtwebengine_dictionaries/ar.bdic"
+
# the symlinks
install -d $pkgdir/usr/share/myspell/dicts
pushd $pkgdir/usr/share/myspell/dicts