# If you are upgrading an old Aspell (0.33.7 or less), or have one that
# was installed under /usr/local, cd into it's source tree and run
# 'make uninstall' as root, then remove the source and tarball
# pspell has been merged with Aspell long ago. If you still have an
# ancient separate pspell, remove it. If you need to enable pspell support
# for PHP, that requires Aspell now.
# Prerequisites:
# gettext (if you don't use --disable-nls)
# Do this if you're installing/upgrading aspell, the dictionary, or both:
mkdir -p -m 0700 ~/installed/aspell ~/src/aspell
# Install Aspell:
# (skip this part if you're only upgrading the dictionary)
cd
test -f installed/aspell/aspell-0.60.8.1.tar.gz &&
mv installed/aspell/aspell-0.60.8.1.tar.gz .
test ! -f aspell-0.60.8.1.tar.gz &&
wget https://ftpmirror.gnu.org/aspell/aspell-0.60.8.1.tar.gz
# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "d6da12b34d42d457fa604e435ad484a74b2effcd120ff40acd6bb3fb2887d2\
1b aspell-0.60.8.1.tar.gz" | sha256sum -c
# Extract the source
mkdir -p -m 0700 ~/src/aspell
cd ~/src
find . aspell -maxdepth 1 -type d -name "aspell-*" -exec rm -r {} \;
cd aspell
tar xzvf ~/aspell-0.60.8.1.tar.gz
cd aspell-0.60.8.1
test $UID = 0 && chown -R root:root .
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info --libdir=/usr/lib64 \
--mandir=/usr/man
# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info --mandir=/usr/man
# Build it
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg aspell
## Old files from previous source-installed versions would most likely
## be here
# /usr/bin/
# (aspell, aspell-import, precat, preunzip, prezip, prezip-bin,
# pspell-config, run-with-aspell, word-list-compress)
# /usr/include/aspell.h
# /usr/include/pspell/pspell.h
# /usr/lib64/aspell-0.60/
# /usr/lib64/libaspell.*
# /usr/lib64/libpspell.*
# /usr/man/man1/
# (aspell.1, aspell-import.1, prezip-bin.1, pspell-config.1,
# run-with-aspell.1, word-list-compress.1)
# /usr/info/aspell.info
# /usr/share/locale/??/LC_MESSAGES/aspell.mo
# Install it
make install
ldconfig
# Become yourself again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/aspell-?.*.tar.* installed/aspell/aspell-?.*.tar.*
mv aspell-0.60.8.1.tar.gz installed/aspell/
# Install the dictionary. If you want to spell check a language other than
# english, replace 'en' with the two letter language code (see the list at
# https://ftp.gnu.org/gnu/aspell/dict/).
cd
test -f installed/aspell/aspell6-en-2020.12.07-0.tar.bz2 &&
mv installed/aspell/aspell6-en-2020.12.07-0.tar.bz2 .
test ! -f aspell6-en-2020.12.07-0.tar.bz2 &&
wget https://ftpmirror.gnu.org/aspell/dict/en/aspell6-en-2020.12.07-0.tar.bz2
# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "4c8f734a28a088b88bb6481fcf972d0b2c3dc8da944f7673283ce487eac49f\
b3 aspell6-en-2020.12.07-0.tar.bz2" | md5sum -c
# Extract the dictionary source
mkdir -p -m 0700 ~/src
cd ~/src
find . aspell -maxdepth 1 -type d -name "aspell-en-*" -exec rm -r {} \;
cd aspell
tar xjvf ~/aspell6-en-2020.12.07-0.tar.bz2
cd aspell6-en-2020.12.07-0
test $UID = 0 && chown -R root:root .
# Configure paths
./configure
# Prep database files
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg aspell-en
# Install it
make install
# Become yourself again
exit
# Save the source for later
cd
rm -f installed/aspell-en-*.tar.* installed/aspell/aspell-en-*.tar.* \
installed/aspell/aspell5-en-*.tar.* installed/aspell/aspell6-en-*.tar.*
mv aspell6-en-2020.12.07-0.tar.bz2 installed/aspell/