# Description: German hyphenation rules # URL: https://www.openoffice.org/lingucomponent/ # Maintainer: Erich Eckner, crux at eckner dot net # Depends on: name=hyphen-de version=20060120 release=1 source=(https://www.mirrorservice.org/sites/download.openoffice.org/contrib/dictionaries/hyph_de_DE.zip https://www.mirrorservice.org/sites/download.openoffice.org/contrib/dictionaries/hyph_de_CH.zip) build() { cd "$SRC" install -dm755 "$PKG"/usr/share/hyphen cp -p hyph_de_??.* "$PKG"/usr/share/hyphen pushd "$PKG"/usr/share/hyphen/ de_DE_aliases="de_AT de_BE de_LU" for lang in $de_DE_aliases; do ln -s hyph_de_DE.dic hyph_$lang.dic done de_CH_aliases="de_LI" for lang in $de_CH_aliases; do ln -s hyph_de_CH.dic hyph_$lang.dic done popd # the symlinks install -dm755 "${PKG}"/usr/share/myspell/dicts pushd "$PKG"/usr/share/myspell/dicts for file in "$PKG"/usr/share/hyphen/*; do ln -sv /usr/share/hyphen/$(basename $file) . done popd }