blob: 598825b2a5c4e3cc3a7db99a7f2a9e6fc1c92b25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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
}
|