# Get the source
cd
test -f installed/libassuan-2.5.6.tar.bz2 &&
mv installed/libassuan-2.5.6.tar.bz2 .
test ! -f libassuan-2.5.6.tar.bz2 &&
wget https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.6.tar.bz2
# Verify tarball w/ sha256sum:
# (this came from the integrity check page and my gpg-verified tarball)
echo "e9fd27218d5394904e4e39788f9b1742711c3e6b41689a31aa3380bd5aa4f4\
26 libassuan-2.5.6.tar.bz2" | sha256sum -c
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libassuan-*" -exec rm -r {} \;
tar xjvf ~/libassuan-2.5.6.tar.bz2
cd libassuan-2.5.6
test $UID = 0 && chown -R root:root .
# Read README and if upgrading, NEWS for a summary and
# ChangeLog for all changes
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info --libdir=/usr/lib64
# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info
# Build it
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libassuan
# Install it
make install
ldconfig
# Become your non-root user again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libassuan-*.tar.*
mv libassuan-2.5.6.tar.bz2 installed/
# If you ever need to uninstall libassuan, this should do it:
test -d ~/src/libassuan-* && ( cd ~/src/libassuan-* ; make uninstall )
su
rm -f /usr/bin/libassuan-config /usr/include/assuan.h \
/usr/info/assuan.info \
/usr/lib/libassuan.* /usr/lib/pkgconfig/libassuan.pc \
/usr/share/aclocal/libassuan.m4
test -d /usr/lib64 &&
( cd /usr/lib64 ; rm -f libassuan.* pkgconfig/libassuan.pc )
exit
find ~/src -maxdepth 1 -type d -name "libassuan-*" -exec rm -r {} \;
rm -f ~/installed/libassuan-*.tar.*