Linux HOWTOs

About | Home | Search


HOWTO: intltool
Description: Internationalization of strings in source files
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


# intltool 0.35.5
# ===============
# Slackware 9.1's 'intltool' package includes version 0.27.2, 10.0 and
# 10.1's include 0.30  As of Slackware 10.2, GNOME is no longer included
# (and neither is intltool).

# Prerequisites:
# Perl
# iconv
# gettext

# Install/update perl's XML::Parser module:
su -c "perl -MCPAN -e shell"
o conf prerequisites_policy follow
o conf make_install_arg UNINST=1
install Bundle::CPAN
install XML::Parser
exit

cd
test -f installed/intltool-0.35.5.tar.bz2 &&
 mv installed/intltool-0.35.5.tar.bz2 .
test ! -f intltool-0.35.5.tar.bz2 &&
 wget http://ftp.gnome.org/pub/GNOME/sources/intltool/0.35/\
intltool-0.35.5.tar.bz2

# Verify tarball w/ md5sum:
echo "f52d5fa7f128db94e884cd21dd45d2e2  intltool-0.35.5.tar.bz2" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "intltool-*" -exec rm -r {} \;
tar xjvf ~/intltool-0.35.5.tar.bz2
cd intltool-0.35.5
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg intltool
make install

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/intltool-*.tar.*
mv intltool-0.35.5.tar.bz2 installed/


# If you ever want to uninstall intltool, this should do it:
cd
su
test -d src/intltool-* && ( cd src/intltool-* ; make uninstall )
( cd /usr/bin ; rm -f intltool-extract intltool-merge intltool-prepare \
 intltool-update intltoolize )
( cd /usr/man/man8 ; rm -f intltool-extract.8 intltool-merge.8 \
 intltool-prepare.8 intltool-update.8 intltoolize.8 )
rm -f /usr/share/aclocal/intltool.m4
test -d /usr/share/intltool && rm -r /usr/share/intltool
exit
find ~/src -maxdepth 1 -type d -name "intltool-*" -exec rm -r {} \;
rm -f ~/installed/intltool-*.tar.*

Back to the list


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