cd
test -f installed/ispell-3.2.06.tar.gz && mv installed/ispell-3.2.06.tar.gz .
test ! -f ispell-3.2.06.tar.gz &&
wget http://fmg-www.cs.ucla.edu/geoff/tars/ispell-3.2.06.tar.gz
cd /usr/local/src
find -type d -maxdepth 1 -name "ispell-*" -exec rm -r {} \;
tar xzvf ~/ispell-3.2.06.tar.gz
# Patch it to fix a one character typo and where everything gets installed:
wget -nc http://englanders.cc/pub/linux/patches/ispell-3.2.06.patch &&
patch -p0 < ispell-3.2.06.patch && rm ispell-3.2.06.patch
cd ispell-3.2.06
chown -R root.root .
make
removepkg ispell
rm -f /usr/local/bin/ispell /usr/local/man/man1/ispell.1 \
/usr/local/man/man4/ispell.4 /usr/man/man4/english.4 \
/usr/local/lib/american.hash /usr/local/lib/americannmed.hash \
/usr/local/lib/english.aff /usr/local/lib/english.hash
make install
ln -sf /usr/bin/ispell /usr/local/bin/ispell
cd /usr/lib
ln -sf americanmed.hash american.hash
ln -sf americanmed.hash english.hash
cd
mkdir -p -m 0700 installed
rm -f installed/ispell-*.tar.*
mv ispell-3.2.06.tar.gz installed/