# This used to be covered in the wv howto, move files from ~/installed/wv/
# into the right place, remove source directories in there:
mv ~/installed/wv/libwmf-*.tar.* ~/installed/
find ~/src/wv -maxdepth 1 -type d -name "wv-*" -exec rm -r {} \;
cd
test -f installed/libwmf-0.2.8.4.tar.gz &&
mv installed/libwmf-0.2.8.4.tar.gz .
test ! -f libwmf-0.2.8.4.tar.gz &&
wget http://download.sf.net/wvware/libwmf-0.2.8.4.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libwmf-*" -exec rm -r {} \;
tar xzvf ~/libwmf-0.2.8.4.tar.gz
cd libwmf-0.2.8.4
test $UID = 0 && chown -R root:root .
./configure
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg libwmf
( cd /usr/local/lib ; rm -f libwmf.* libwmf-*.so.* libwmflite.* \
libwmflite-*.so.* )
make install
ldconfig
chown -R $USER .
# Become yourself again
exit
cd
rm -f installed/libwmf-*.tar.gz
mv libwmf-0.2.8.4.tar.gz installed/
# If you ever want to uninstall libwmv, cd into the source directory, run
# 'make uninstall', remove the source directory, then remove the tarball