4 pkgdesc='Esperanto dictionary for Hunspell'
6 url="http://wiki.services.openoffice.org/wiki/Dictionaries#Esperanto_.28anywhere.29"
9 optdepends=('hunspell: the spell checking libraries and apps')
10 source=('http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/eo.zip')
11 md5sums=('518edcd9a9ecda594e519b2af1fd7e80')
15 install -dm755 ${pkgdir}/usr/share/hunspell
16 install -m644 eo_l3.dic ${pkgdir}/usr/share/hunspell/
17 install -m644 eo_l3.aff ${pkgdir}/usr/share/hunspell/
20 conv='iconv -f iso8859-3 -t utf-8'
21 $conv eo_l3.dic > eo_EO.dic
22 $conv eo_l3.aff | sed '1s/SET ISO8859-3/SET UTF-8/' > eo_EO.aff
23 install -m644 eo_EO.dic ${pkgdir}/usr/share/hunspell/
24 install -m644 eo_EO.aff ${pkgdir}/usr/share/hunspell/
27 install -dm755 ${pkgdir}/usr/share/myspell/dicts
28 pushd ${pkgdir}/usr/share/myspell/dicts
29 for file in ${pkgdir}/usr/share/hunspell/*; do
30 ln -sv /usr/share/hunspell/$(basename ${file}) .
35 install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
36 install -m644 README_eo_l3.txt $pkgdir/usr/share/doc/${pkgname}/README_eo.txt