cd
test -f installed/libsvg-cairo-0.1.6.tar.gz &&
mv installed/libsvg-cairo-0.1.6.tar.gz .
test ! -f libsvg-cairo-0.1.6.tar.gz &&
wget http://cairographics.org/snapshots/libsvg-cairo-0.1.6.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libsvg-cairo-*" -exec rm -r {} \;
tar xzvf ~/libsvg-cairo-0.1.6.tar.gz
cd libsvg-cairo-0.1.6
test $UID = 0 && chown -R root:root .
find -type f -exec chmod 644 {} \;
chmod 755 configure
./configure
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/libsvg-cairo-*.tar.*
mv libsvg-cairo-0.1.6.tar.gz installed/
# If you ever want to uninstall libsvg-cairo, this should do it:
cd
su
test -d src/libsvg-cairo-* && ( cd src/libsvg-cairo-* ; make uninstall )
rm -f /usr/local/include/svg-cairo.h /usr/local/lib/libsvg-cairo.* \
/usr/local/lib/pkgconfig/libsvg-cairo.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libsvg-cairo-*" -exec rm -r {} \;
rm -f ~/installed/libsvg-cairo-*.tar.*