cd
test -f installed/sharutils-4.6.tar.bz2 &&
mv installed/sharutils-4.6.tar.bz2 .
test ! -f sharutils-4.6.tar.bz2 &&
wget http://ftp.gnu.org/gnu/sharutils/REL-4.6/sharutils-4.6.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "sharutils-*" -exec rm -r {} \;
tar xjvf ~/sharutils-4.6.tar.bz2
cd sharutils-4.6
test $UID = 0 && chown -R root:root .
find -type f -exec chmod 644 {} \;
chmod +x configure
# If you want to skip building and installing uuencode and uudecode (ie.
# you have gmime installed) pass --disable-uucode to configure
# I pass --disable-nls to configure because I live in the US and only
# read/write English (well). If this is not the case for you, leave it off.
./configure --prefix=/usr --disable-nls
make
# Become root to clean up old files and to install it
su
# If you've never been through this howto before, run this to remove the
# sharutils files that are part of Slackware's 'bin' package:
( cd /usr/bin ; rm -f shar unshar uuencode uudecode )
find /usr/doc -maxdepth 1 -type d -name "sharutils-*" -exec rm -r {} \;
rm -f /usr/info/sharutils.info.gz /usr/man/man5/uuencode.5.gz
( cd /usr/man/man1 ;
rm -f shar.1.gz unshar.1.gz uuencode.1.gz uudecode.1.gz )