# Once it's installed, you can use 'tar' with it's --lzip option
# to handle .tar.lz files
# Get it
cd
test -f installed/lzip-1.23.tar.gz && mv -f installed/lzip-1.23.tar.gz .
test ! -f lzip-1.23.tar.gz &&
wget https://download.savannah.gnu.org/releases/lzip/lzip-1.23.tar.gz
# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "4792c047ddf15ef29d55ba8e68a1a21e0cb7692d87ecdf7204419864582f28\
0d lzip-1.23.tar.gz" | sha256sum -c
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "lzip-*" -exec rm -r {} \;
tar xzvf ~/lzip-1.23.tar.gz
cd lzip-1.23
test $UID = 0 && chown -R root:root .
# Read README and INSTALL
# If upgrading, read NEWS for changes since the previous release,
# and ChangeLog for all changes
# Configure the build
# This is NOT an autoconf configure script
./configure --prefix=/usr --infodir=/usr/info --mandir=/usr/man
# Build it
make
# Check the build
make check
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg lzip
# Install it
make install
# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .
# Become your non-root user again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/gmp-*.tar.*
mv lzip-1.23.tar.gz installed/
# If you ever want to uninstall Lzip, this should do it:
cd
su
test -d src/lzip-* && ( cd src/lzip-* ; make uninstall )
rm -f /usr/bin/lzip /usr/info/lzip.info /usr/man/man1/lzip.1
exit
find ~/src -maxdepth 1 -type d -name "lzip-*" -exec rm -r {} \;
rm -f ~/installed/lzip-*.tar.*