Linux HOWTOs

About | Home | Search


HOWTO: icon-naming-utils
Description: Utilities for mapping icon names to a new icon spec
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# 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

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/icon-naming-utils-*.tar.*
mv icon-naming-utils-0.8.1.tar.gz installed/


# 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.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>