core/hunspell-sv/PKGBUILD
2016-02-22 00:21:22 +00:00

30 lines
1008 B
Bash

# Platform packages for Chakra
pkgname=hunspell-sv
pkgver=2.37
_pkgver=2-37
pkgrel=1
pkgdesc="Swedish dictionaries for Hunspell"
arch=('any')
url="http://hunspell.sourceforge.net/"
license=('LGPL3')
depends=('hunspell')
source=("http://extensions.libreoffice.org/extension-center/swedish-spelling-dictionary-den-stora-svenska-ordlistan/releases/${pkgver}/ooo_swedish_dict_${_pkgver}.oxt")
md5sums=('560f90a0499513adeb0d4771b241b692')
package() {
cd $srcdir/dictionaries
install -D -m644 sv_SE.dic $pkgdir/usr/share/hunspell/sv_SE.dic
install -D -m644 sv_SE.aff $pkgdir/usr/share/hunspell/sv_SE.aff
install -D -m644 sv_FI.dic $pkgdir/usr/share/hunspell/sv_FI.dic
install -D -m644 sv_FI.aff $pkgdir/usr/share/hunspell/sv_FI.aff
#myspell symlinks
install -dm755 "${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
}