diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 26 insertions, 28 deletions
@@ -1,15 +1,15 @@ pkgbase = hunspell-ar pkgdesc = Arabic dictionary for hunspell pkgver = 3.5 - pkgrel = 1 + pkgrel = 6 url = http://ayaspell.sourceforge.net arch = any - license = GPL - license = LGPL - license = MPL + license = GPL-2.0-or-later + license = LGPL-2.1-or-later + license = MPL-1.1 + makedepends = qt6-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 - @@ -1,41 +1,39 @@ # Maintainer: Munzir Taha <munzirtaha at gmail dot com> + pkgname=hunspell-ar pkgver=3.5 -pkgrel=1 +pkgrel=6 pkgdesc="Arabic dictionary for hunspell" arch=(any) url="http://ayaspell.sourceforge.net" -license=('GPL' 'LGPL' 'MPL') +license=('GPL-2.0-or-later' 'LGPL-2.1-or-later' 'MPL-1.1') +makedepends=('qt6-webengine') optdepends=('hunspell: the spell checking libraries and apps') source=(http://downloads.sourceforge.net/project/ayaspell/${pkgname}_${pkgver}.2014-11-08.zip) sha256sums=('966faf94e7d05d52e9afdd20b266e28932edf5b32fe26aa83d554d6a2c6021ea') -build() { - /bin/true -} - package() { cd "$srcdir" - install -d $pkgdir/usr/share/hunspell - install -D -m644 ar.dic ar.aff $pkgdir/usr/share/hunspell/ + install -vDm 644 ar.dic ar.aff -t "$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" - for lang in $ar_aliases; do - ln -s ar.aff $lang.aff - ln -s ar.dic $lang.dic + # Install webengine dictionary; the IGNORE command is not supported by bdic (https://bugs.chromium.org/p/chromium/issues/detail?id=1374955) + sed -i '/^IGNORE/d' ar.aff + install -vd "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/ + for _file in *.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 - popd - # the symlinks - install -d $pkgdir/usr/share/myspell/dicts - pushd $pkgdir/usr/share/myspell/dicts - for file in $pkgdir/usr/share/hunspell/ar.*; do - ln -sv /usr/share/hunspell/$(basename $file) . - done + # myspell symlinks + install -vdm755 "${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")" . + done popd # docs - install -d $pkgdir/usr/share/doc/$pkgname - install -m644 ChangeLog-?? README-?? AUTHORS TODO-?? "$pkgdir/usr/share/doc/$pkgname/" + install -vd "$pkgdir"/usr/share/doc/$pkgname + install -vm644 AUTHORS ChangeLog-* README-* THANKS TODO-* install-* "$pkgdir/usr/share/doc/$pkgname/" } |