updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hyphen-ca / PKGBUILD
blobd01e79c807c6e699e4cf9657deb0e3be2252a9f1
1 # Maintainer: jpatufet <jpatufet86@gmail.com>
3 pkgname=hyphen-ca
4 pkgver=0.9.3
5 pkgrel=1
6 pkgdesc="Catalan hyphenation rules"
7 arch=(any)
8 url="http://www.softcatala.org/wiki/Rebost:Diccionari_catal%C3%A0_de_partici%C3%B3_de_mots_per_a_l%27OpenOffice.org"
9 license=('GPL')
10 optdepends=('hyphen: offers hyphenation library functions')
11 source=('http://www.softcatala.org/diccionaris/actualitzacions/guions/hyph-ca.oxt')
12 md5sums=('586d5063f7b502498f6d0c3c4233cce3')
14 package(){
16     #copy hypen
17     cd "${srcdir}"
18     install -dm755 "${pkgdir}"/usr/share/hyphen
19     cp -p hyph_ca_ANY.dic "${pkgdir}"/usr/share/hyphen/hyph_ca_ES.dic
21     #alias hyphen
22     pushd "${pkgdir}"/usr/share/hyphen/
23     ca_ES_alias="ca_AD ca_FR ca_IT"
24     for lang in ${ca_ES_alias}; do
25         ln -s hyph_ca_ES.dic hyph_${lang}.dic
26     done
27     popd
29     #myspell symlinks
30     install -dm755 "${pkgdir}"/usr/share/myspell/dicts
31     pushd "${pkgdir}"/usr/share/myspell/dicts
32     for file in "${pkgdir}"/usr/share/hyphen/*; do
33         ln -sv /usr/share/hyphen/"$(basename "${file}")" .
34     done
35     popd
37     #docs
38     #install -dm755 "${pkgdir}"/usr/share/doc/"${pkgname}"