summaryrefslogtreecommitdiffstats
path: root/hunspell-fr/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2012-06-07 21:56:35 +0200
committerpiernov <piernov@piernov.org>2012-06-17 18:18:32 +0200
commitbc22d7884ab642bda3c47a1f1cbbdd65ae22b4ff (patch)
tree4a004ab0812696bc1d0111b3b5d5949974b6ebfc /hunspell-fr/Pkgfile
parent115366e219381c6611977bec6d2464aa4eb4e7ca (diff)
downloadnutyx-extra-bc22d7884ab642bda3c47a1f1cbbdd65ae22b4ff.tar.gz
nutyx-extra-bc22d7884ab642bda3c47a1f1cbbdd65ae22b4ff.tar.bz2
nutyx-extra-bc22d7884ab642bda3c47a1f1cbbdd65ae22b4ff.tar.xz
nutyx-extra-bc22d7884ab642bda3c47a1f1cbbdd65ae22b4ff.zip
hunspell-fr, ajout 4.5-1
(cherry picked from commit b9b1fa7f3447cdb265216c0777f6a9839b522428)
Diffstat (limited to 'hunspell-fr/Pkgfile')
-rw-r--r--hunspell-fr/Pkgfile32
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
+
+}
+