1 # Maintainer: Archadept
7 pkgdesc='Latin dictionary for Hunspell'
9 url="http://extensions.services.openoffice.org/en/project/dict-la"
10 license=('GPLv3 GPLv2')
11 optdepends=('hunspell: the spell checking libraries and apps')
12 source=('http://extensions.services.openoffice.org/e-files/1141/2/dict-la_2011-08-07.oxt')
13 md5sums=('bacb2935f0273c9bc777a579c3b52bce')
18 install -dm755 ${pkgdir}/usr/share/hunspell
19 install -m644 la.dic ${pkgdir}/usr/share/hunspell
20 install -m644 la.aff ${pkgdir}/usr/share/hunspell
23 conv='iconv -f iso8859-1 -t utf-8'
24 $conv la.dic > la_LA.dic
25 $conv la.aff | sed '1s/SET ISO8859-1/SET UTF-8/' > la_LA.aff
26 install -m644 la_LA.dic ${pkgdir}/usr/share/hunspell/
27 install -m644 la_LA.aff ${pkgdir}/usr/share/hunspell/
29 rm ${pkgdir}/usr/share/hunspell/la.dic
30 rm ${pkgdir}/usr/share/hunspell/la.aff
33 install -dm755 ${pkgdir}/usr/share/myspell/dicts
34 pushd ${pkgdir}/usr/share/myspell/dicts
35 for file in ${pkgdir}/usr/share/hunspell/*; do
36 ln -sv /usr/share/hunspell/$(basename ${file}) .
41 install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
42 install -m644 README_la.txt $pkgdir/usr/share/doc/${pkgname}/README_la.txt