updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / hunspell-eo / PKGBUILD
blobf386fc11e73a6442c591be862dd3b3c39a3e5854
1 pkgname=hunspell-eo
2 pkgver=1.1
3 pkgrel=1
4 pkgdesc='Esperanto dictionary for Hunspell'
5 arch=('any')
6 url="http://wiki.services.openoffice.org/wiki/Dictionaries#Esperanto_.28anywhere.29"
7 license=('GPL')
8 #makedepend=(sed)
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')
13 package() {
14   cd "${srcdir}"
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/
18   
19   # UTF-8 vortaroj
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/
26   # the symlinks
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}) .
31     done
32   popd
33   
34   # docs
35   install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
36   install -m644 README_eo_l3.txt $pkgdir/usr/share/doc/${pkgname}/README_eo.txt