mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libLASi-*" -exec rm -r {} \;
tar xzvf ~/libLASi-1.1.0.tar.gz
cd libLASi-1.1.0
test $UID = 0 && chown -R root:root .
# Put everything in a build directory
mkdir build_dir
cd build_dir
# Configure it using CMake:
cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INSTALL_INFODIR=/usr/local/info \
-DCMAKE_INSTALL_MANDIR=/usr/local/man ..
# Build it
make
# Become root to install it
su
# Slackware keeps local documentation in /usr/local/doc. Many
# packages will try to install it in to /usr/local/share/doc.
# I would suggest making /usr/local/share/doc a symlink to
# /usr/local/doc (or vice-versa) so you don't have to wonder which
# one it went in to. You could use -DCMAKE_INSTALL_DATADIR=/usr/local,
# but then what used to be /usr/local/share/lasi-1.1.0 will become
# /usr/local/lasi-1.1.0, so I don't do that here.
#
# If you don't want to go with the symlink method, do this after
# 'make install':
test -d /usr/local/share/doc/liblasi-1.1.0 &&
mv -f /usr/local/share/doc/liblasi-1.1.0 /usr/local/doc/
rmdir /usr/local/share/doc
# Install libLASi
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .