# icon-naming-utils 0.8.1
# =======================
# Install/update the XML::Simple Perl module
su -c "perl -MCPAN -e shell"
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install XML::Simple
exit
cd
test -f installed/icon-naming-utils-0.8.1.tar.gz &&
mv installed/icon-naming-utils-0.8.1.tar.gz .
test ! -f icon-naming-utils-0.8.1.tar.gz &&
wget http://tango-project.org/releases/icon-naming-utils-0.8.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "icon-naming-utils-*" -exec rm -r {} \;
tar xzvf ~/icon-naming-utils-0.8.1.tar.gz
cd icon-naming-utils-0.8.1
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make
# Become root to install it
su
# Install it
make install
# Move the pkgconfig file where it will be found
# (without modifying PKG_CONFIG_PATH, etc.)
mv -f /usr/share/pkgconfig/icon-naming-utils.pc /usr/lib/pkgconfig/
rmdir --ignore-fail-on-non-empty /usr/share/pkgconfig
# If you ever want to uninstall icon-naming-utils, this should do it:
cd
su
test -d src/icon-naming-utils-* &&
( cd src/icon-naming-utils-* ; make uninstall )
/usr/lib/pkgconfig/icon-naming-utils.pc
/usr/libexec/icon-name-mapping
/usr/share/dtds/legacy-icon-mapping.dtd
/usr/share/icon-naming-utils/legacy-icon-mapping.xml
/usr/share/pkgconfig/icon-naming-utils.pc
exit
find ~/src -maxdepth 1 -type d -name "icon-naming-utils-*" -exec rm -r {} \;
rm -f ~/installed/icon-naming-utils-*.tar.*