mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/hspell to 1.4-4
This commit is contained in:
parent
00b196dcf7
commit
c45969e721
1 changed files with 10 additions and 9 deletions
|
@ -7,13 +7,13 @@
|
||||||
pkgbase=hspell
|
pkgbase=hspell
|
||||||
pkgname=('hspell' 'hunspell-he')
|
pkgname=('hspell' 'hunspell-he')
|
||||||
pkgver=1.4
|
pkgver=1.4
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
url="http://www.ivrix.org.il/projects/spell-checker/"
|
url="http://www.ivrix.org.il/projects/spell-checker/"
|
||||||
makedepends=('glibc' 'zlib' 'perl' 'hunspell' 'gawk')
|
makedepends=('glibc' 'zlib' 'perl' 'hunspell' 'gawk')
|
||||||
makedepends_armv7h=('qt5-webengine')
|
makedepends_armv7h=('qt6-webengine')
|
||||||
makedepends_aarch64=('qt5-webengine')
|
makedepends_aarch64=('qt6-webengine')
|
||||||
options=('!makeflags')
|
options=('!makeflags')
|
||||||
source=(http://hspell.ivrix.org.il/${pkgname}-${pkgver}.tar.gz{,.sig})
|
source=(http://hspell.ivrix.org.il/${pkgname}-${pkgver}.tar.gz{,.sig})
|
||||||
sha256sums=('7310f5d58740d21d6d215c1179658602ef7da97a816bc1497c8764be97aabea3'
|
sha256sums=('7310f5d58740d21d6d215c1179658602ef7da97a816bc1497c8764be97aabea3'
|
||||||
|
@ -37,7 +37,7 @@ package_hspell() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
rm -f ${pkgdir}/usr/lib/libhspell.a
|
rm -f "${pkgdir}"/usr/lib/libhspell.a
|
||||||
}
|
}
|
||||||
|
|
||||||
package_hunspell-he() {
|
package_hunspell-he() {
|
||||||
|
@ -52,18 +52,19 @@ package_hunspell-he() {
|
||||||
|
|
||||||
# the symlinks
|
# the symlinks
|
||||||
install -dm755 "$pkgdir"/usr/share/myspell/dicts
|
install -dm755 "$pkgdir"/usr/share/myspell/dicts
|
||||||
pushd $pkgdir/usr/share/myspell/dicts
|
pushd "$pkgdir"/usr/share/myspell/dicts
|
||||||
for file in $pkgdir/usr/share/hunspell/*; do
|
for file in "$pkgdir"/usr/share/hunspell/*; do
|
||||||
ln -sv /usr/share/hunspell/$(basename $file) .
|
ln -sv /usr/share/hunspell/$(basename $file) .
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Install webengine dictionaries
|
# Install webengine dictionaries
|
||||||
if [[ $CARCH == "armv7h" || $CARCH == "aarch64" ]]; then
|
if [[ $CARCH == "armv7h" || $CARCH == "aarch64" ]]; then
|
||||||
install -d "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
|
install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
|
||||||
for _file in "$pkgdir"/usr/share/hunspell/*.dic; do
|
for _file in "$pkgdir"/usr/share/hunspell/*.dic; do
|
||||||
_filename=$(basename $_file)
|
_filename=$(basename $_file)
|
||||||
qwebengine_convert_dict $_file "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
|
/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
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue