updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / hunspell-bg / PKGBUILD
blob39ca25d92ce5cdf4e2eb01b2545b9978a3f28d39
1 # Maintainer: Slavi Pantaleev <s.pantaleev at gmail.com>
3 pkgname=hunspell-bg
4 pkgver=4.3
5 pkgrel=1
6 pkgdesc='Bulgarian dictionary for Hunspell'
7 arch=('any')
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')
14 package() {
15   cd "${srcdir}/OOo-spell-bg-${pkgver}"
16   install -dm755 ${pkgdir}/usr/share/hunspell
18   # UTF-8 convert
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
27   # the symlinks
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}) .
32     done
33   popd
35   # docs
36   install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
37   install -m644 README_bulgarian.txt ${pkgdir}/usr/share/doc/${pkgname}/
39   # licenses
40   install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
41   install -m644 Copyright ${pkgdir}/usr/share/licenses/${pkgname}/Copyright