1 # Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
6 pkgdesc="French hyphenation rules"
8 url='https://www.gammalecte.net/home.php?prj=fr'
10 optdepends=('hyphen: offers hyphenation library functions')
11 source=("https://grammalecte.net/download/fr/hyph-fr-v${pkgver}.zip")
12 sha256sums=('c36e530bbd12d7b36b1238feaf4055dcb05fee0e139ed441953557857de4f363')
16 install -dm755 ${pkgdir}/usr/share/hyphen
17 install -m644 hyph_fr.dic ${pkgdir}/usr/share/hyphen/hyph_fr_FR.dic
19 pushd ${pkgdir}/usr/share/hyphen/
20 fr_FR_aliases="fr_BE fr_CA fr_CH fr_LU"
21 for lang in ${fr_FR_aliases}; do
22 ln -s hyph_fr_FR.dic hyph_${lang}.dic
28 install -dm755 ${pkgdir}/usr/share/myspell/dicts
29 pushd ${pkgdir}/usr/share/myspell/dicts
30 for file in ${pkgdir}/usr/share/hyphen/*; do
31 ln -sv /usr/share/hyphen/$(basename ${file}) .
36 install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
37 install -m644 README_hyph_fr-${pkgver}.txt \
38 ${pkgdir}/usr/share/doc/${pkgname}/README_hyph_fr_FR.txt