1 # Maintainer: Slavi Pantaleev <s.pantaleev at gmail.com>
6 pkgdesc='Bulgarian dictionary for Hunspell'
8 url="http://sourceforge.net/projects/bgoffice/"
9 license=('GPL2' 'LGPL2.1' 'MPL')
10 optdepends=('hunspell: the spell checking libraries and apps')
11 source=('http://sourceforge.net/projects/bgoffice/files/OpenOffice.org%20Spell%20BG/'$pkgver'/OOo-spell-bg-'$pkgver'.zip')
12 md5sums=('ee804f871c855eb218c8d825b5fe54fb')
15 cd "${srcdir}/OOo-spell-bg-${pkgver}"
16 install -dm755 ${pkgdir}/usr/share/hunspell
19 conv='iconv -f windows-1251 -t utf-8'
20 $conv bg_BG.dic > bg_BG_utf8.dic
21 $conv bg_BG.aff | sed '1s/SET microsoft-cp1251/SET UTF-8/' > bg_BG_utf8.aff
22 $conv README.bulgarian > README_bulgarian.txt
24 install -m644 bg_BG_utf8.dic ${pkgdir}/usr/share/hunspell/bg_BG.dic
25 install -m644 bg_BG_utf8.aff ${pkgdir}/usr/share/hunspell/bg_BG.aff
28 install -dm755 ${pkgdir}/usr/share/myspell/dicts
29 pushd ${pkgdir}/usr/share/myspell/dicts
30 for file in ${pkgdir}/usr/share/hunspell/*; do
31 ln -sv /usr/share/hunspell/$(basename ${file}) .
36 install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
37 install -m644 README_bulgarian.txt ${pkgdir}/usr/share/doc/${pkgname}/
40 install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
41 install -m644 Copyright ${pkgdir}/usr/share/licenses/${pkgname}/Copyright