blob: 96c916d810f59b7555e7ebd84a9d3d1481604e4f (
plain)
1 # Description: Library for high quality hyphenation and justification.
2 # URL: https://sourceforge.net/projects/hunspell/files/Hyphen/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4
5 name=hyphen
6 version=2.8.8
7 release=1
8 source=(https://downloads.sourceforge.net/hunspell/$name-$version.tar.gz)
9
10 build() {
11 cd $name-$version
12
13 ./configure --prefix=/usr
14
15 make
16 make DESTDIR=$PKG install
17
18 pushd $PKG/usr/share/hyphen/
19 en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NZ en_PH en_SG en_TT en_ZA en_ZW"
20 for lang in $en_US_aliases; do
21 ln -s hyph_en_US.dic hyph_$lang.dic
22 done
23 popd
24
25 # the symlinks
26 install -d -m 0755 $PKG/usr/share/myspell/dicts
27 pushd $PKG/usr/share/myspell/dicts
28 for file in $PKG/usr/share/hyphen/*; do
29 ln -sv /usr/share/hyphen/$(basename $file) .
30 done
31 popd
32 }
|