diff options
Diffstat (limited to 'hunspell-fr/Pkgfile')
-rw-r--r-- | hunspell-fr/Pkgfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/hunspell-fr/Pkgfile b/hunspell-fr/Pkgfile new file mode 100644 index 000000000..a0fa457da --- /dev/null +++ b/hunspell-fr/Pkgfile @@ -0,0 +1,32 @@ +# Description: Dictionnaire français hunspell +# URL: http://www.dicollecte.org/ +# Maintainer: NuTyX core team +# Packager: lesibel at free dot fr +# Depends on: hunspell +# Run on: hunspell + +name=hunspell-fr +version=4.5 +release=1 +source=(http://www.dicollecte.org/download/fr/${name}-moderne-v${version}.zip) + +build() { + install -dm755 $PKG/usr/share/hunspell + install -m644 fr-moderne.dic $PKG/usr/share/hunspell/fr_FR.dic + install -m644 fr-moderne.aff $PKG/usr/share/hunspell/fr_FR.aff + pushd $PKG/usr/share/hunspell/ + fr_FR_aliases="fr_BE fr_CA fr_CH fr_LU" + for lang in ${fr_FR_aliases}; do + ln -s fr_FR.aff ${lang}.aff + ln -s fr_FR.dic ${lang}.dic + done + popd + install -dm755 $PKG/usr/share/myspell/dicts + pushd $PKG/usr/share/myspell/dicts + for file in $PKG/usr/share/hunspell/*; do + ln -sv /usr/share/hunspell/$(basename ${file}) . + done + popd + +} + |