mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libsigc++-*" -exec rm -r {} \;
tar xjvf ~/libsigc++-2.0.17.tar.bz2
cd libsigc++-2.0.17
test $UID = 0 && chown -R root:root .
# As configured below, the docs will go into /usr/local/share/doc
# If you don't want this, either pass --datadir=/usr to configure (making
# them go into /usr/doc), or create a /usr/local/share/doc symlink to
# /usr/doc like so:
# su -c "ln -s /usr/doc /usr/local/share/doc"
./configure
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/libsigc++-*.tar.*
mv libsigc++-2.0.17.tar.bz2 installed/
# If you ever want to uninstall libsigc++, this should do it:
cd
su
test -d src/libsigc++-2.0.17 &&
( cd src/libsigc++-2.0.17 ; make uninstall )
rm -f /usr/local/lib/libsigc-2.0.* /usr/local/lib/pkgconfig/sigc++-2.0.pc
test -d /usr/local/lib/sigc++-2.0 && rm -r /usr/local/lib/sigc++-2.0
test -d /usr/local/share/doc/libsigc-2.0 &&
rm -r /usr/local/share/doc/libsigc-2.0
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libsigc++-*" -exec rm -r {} \;
rm -f ~/installed/libsigc++-*.tar.*