# ispell, http://ficus-www.cs.ucla.edu/geoff/ispell.html

name=ispell
version=3.2.06
source=($name-$version.tar.gz $name-$version.patch)

build() {
    cd $name-$version
    patch -p1 < ../$name-$version.patch
    make TMPDIR=/tmp
    mkdir -p $PKG/usr/bin
    mkdir -p $PKG/usr/lib/ispell
    mkdir -p $PKG/usr/man/man1
    mkdir -p $PKG/usr/man/man4
    cp ispell buildhash $PKG/usr/bin
    cp ispell.1 $PKG/usr/man/man1
    cp ispell.4 $PKG/usr/man/man4
    cp languages/american/americanmed.hash $PKG/usr/lib/ispell
    cp languages/english/english.aff $PKG/usr/lib/ispell
    (cd $PKG/usr/lib/ispell
     ln -s americanmed.hash american.hash
     ln -s americanmed.hash english.hash)
    strip $PKG/usr/bin/*
    gzip -9 $PKG/usr/man/man?/*
}
