summaryrefslogtreecommitdiffstats
path: root/hunspell-fr/Pkgfile
blob: a0fa457dad535ef863dbf2ba89bdca2b5c4a037f (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
# 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
		
}