# Just in case you have something that uses version 0.2.0, but not 0.4.0
# I'll include both, though I may remove the older one in a future update.
# If you ever want to uninstall libvisual, cd into the source directory,
# run 'make uninstall, remove the source directory and the tarball. Then
# run 'ldconfig' for good measure.
# libvisual 0.4.0
# ===============
cd
test -f installed/libvisual-0.4.0.tar.gz &&
mv installed/libvisual-0.4.0.tar.gz .
test ! -f libvisual-0.4.0.tar.gz &&
wget http://download.sf.net/libvisual/libvisual-0.4.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libvisual-*" -exec rm -r {} \;
tar xzvf ~/libvisual-0.4.0.tar.gz
cd libvisual-0.4.0
test $UID = 0 && chown -R root:root .
./configure
make
# Become root to install it
su
test -d /usr/include/libvisual && rm -f /usr/include/libvisual
rm -f /usr/lib/libvisual.* /usr/lib/pkgconfig/libvisual.pc
make install
ldconfig