updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / hunspell-ca / PKGBUILD
blob9ff5dae091c6b2bcd0be5177d889e599ebd6a75a
1 # Maintainer: jpatufet <jpatufet86@gmail.com>
3 pkgname=hunspell-ca
4 pkgver=2.2.0
5 pkgrel=2
6 pkgdesc="Catalan hunspell dictionaries"
7 arch=(any)
8 url="http://www.softcatala.org/corrector"
9 license=('GPL')
10 makedepends=('hunspell')
11 optdepends=('hunspell:  the spell checking libraries and apps')
12 source=('http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt')
13 md5sums=('5f84d53ebcaed6c419b8bf800bdfa3c7')
15 package(){
17     #copy hunspell
18     cd "${srcdir}"
19     install -dm755 "${pkgdir}"/usr/share/hunspell
20     cp -p dictionaries/catalan.aff "${pkgdir}"/usr/share/hunspell/ca_ES.aff
21     cp -p dictionaries/catalan.dic "${pkgdir}"/usr/share/hunspell/ca_ES.dic
22     
23     #alias hunspell
24     ca_ES_alias="ca_AD ca_FR ca_IT"
25     pushd "${pkgdir}"/usr/share/hunspell/
26     for lang in ${ca_ES_alias}; do
27         ln -s ca_ES.aff "${lang}".aff
28         ln -s ca_ES.dic "${lang}".dic
29     done
30     popd
32     #myspell 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
40     #docs
41     #install -dm755 "${pkgdir}"/usr/share/doc/"${pkgname}"
42