updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hunspell-la / PKGBUILD
blob35132777658eafa4f1b3acbd4f93631279c26b74
1 #  Maintainer: Archadept
2 #    Revision: 2011-08-26
4 pkgname=hunspell-la
5 pkgver=3.0
6 pkgrel=1
7 pkgdesc='Latin dictionary for Hunspell'
8 arch=('any')
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')
15 package() {
16         cd "${srcdir}/la"
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
21   
22         # UTF-8
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
32         # symlinks
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}) .
37         done
38         popd
39   
40         # docs
41         install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
42         install -m644 README_la.txt $pkgdir/usr/share/doc/${pkgname}/README_la.txt