summaryrefslogtreecommitdiffstats
path: root/hyphen/Pkgfile
blob: 2a6b601a4fdea6c1675ab69ad72f8f979578005d (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: Correcteur d'orthographe par défaut de openoffice, de firefox et thunderbird
# URL: http://hunspell.sf.net
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr

name=hyphen
version=2.8.5
release=1
source=(http://downloads.sourceforge.net/hunspell/$name-$version.tar.gz )

build() {
	cd $name-$version
  	./configure --prefix=/usr --disable-static
  	make
	make DESTDIR=$PKG install-libLTLIBRARIES
  	make DESTDIR=$PKG install-binSCRIPTS
  	make DESTDIR=$PKG install-includeHEADERS
  
  	# license
  	install -D -m644 COPYING $PKG/usr/share/licenses/$name/LICENSE

  	
  	make DESTDIR=$PKG install-hyphDATA

  	pushd $PKG/usr/share/hyphen/
   	fr_FR_aliases="fr_FR fr_CA fr_BE"
	for lang in $fr_FR_aliases; do
        	ln -s hyph_fr_FR.dic hyph_$lang.dic
   	done
  	popd
}