# Licq
# ====
# When 1.2.7 was the latest stable version and I tried to build it with
# gcc 3.4.x, I went through a whole mess of trial and error between
# gcc 3.4-isms and apparent problems with the version of gpgme that I had
# installed. I ended up able to build the CVS version or the daily snapshot
# (which was 5 days old) using --disable-gpgme. This is why I have the
# latest stable version, the daily snapshot, and CVS below. I may remove
# all but the latest stable next time.
#
# The last time I updated this howto, I installed the 1.3.2 version with gcc
# 3.4.4 and gpgme 1.1.0
# Prerequisites:
# autoconf and automake (if you use the CVS version)
# gawk
# grep
# socks (optional; pass --enable-socks5 to configure to use it)
# gpgme
# openssl (optional)
# iconv
# gettext
# XFree86 or X.org
# Qt
# KDE (required by the qt-gui plugin if you pass --with-kde to it's configure)
# Create directories for the icons, skins, tarball, and source
mkdir -p -m 0700 ~/installed/licq/icons ~/installed/licq/skins ~/src
cd
test -f installed/licq/licq-1.3.2.tar.bz2 &&
mv installed/licq/licq/licq-1.3.2.tar.bz2 .
test ! -f licq-1.3.2.tar.bz2 &&
wget http://download.sf.net/licq/licq-1.3.2.tar.bz2
mkdir -p -m 0700 src
cd src
test -d ./licq && rm -r ./licq
find -maxdepth 1 -type d -name "licq-*" -exec rm -r {} \;
tar xjvf ~/licq-1.3.2.tar.bz2
cd licq-1.3.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .
# If you have libiconv installed (vs. just using glibc's built-in iconv),
# run this before the configure line:
# LIBS=-liconv
./configure --with-openssl-inc=/usr/local/ssl/include --with-openssl-lib=/usr/local/ssl/lib --disable-nls
make
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cvs-*" -exec rm -r {} \;
test -d licq && cd licq && cvs update
test ! -d licq &&
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/licq login &&
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/licq co licq
cd licq
test $UID = 0 && chown -R root:root .
make -f Makefile.cvs
./configure --disable-gpgme --disable-nls --with-openssl-inc=/usr/local/ssl/include --with-openssl-lib=/usr/local/ssl/lib
make
cd plugins/qt-gui
make -f Makefile.cvs
./configure --with-kde
make
cd ../..
# Become root to install it
su
make install
( cd plugins/qt-gui ; make install )
# Become yourself again
exit
cd
rm -f installed/licq-*.tar.*
echo "licq was installed from cvs" > installed/licq/licq.README
echo "Source is in ~/src/licq" >> installed/licq/licq.README
# Extract icon packs
find -regextype posix-egrep -type f -regex ".*\.(tgz|tar\.gz)$" -exec tar xzvf {} -C /usr/local/share/licq/qt-gui \;
# Fix the Pokemon icon pack (which includes the full path...)
test -d /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui/icons.Pokemon &&
mv /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui/icons.Pokemon /usr/local/share/licq/qt-gui/
rm -r /usr/local/share/licq/qt-gui/usr
# Extract skins
cd ../skins
find -regextype posix-egrep -type f -regex ".*\.tar$" -exec tar xvf {} -C /usr/local/share/licq/qt-gui \;
find -regextype posix-egrep -type f -regex ".*\.(tgz|tar\.gz)$" -exec tar xzvf {} -C /usr/local/share/licq/qt-gui \;
find -regextype posix-egrep -type f -regex ".*\.tar\.bz2$" -exec tar xjvf {} -C /usr/local/share/licq/qt-gui \;
find -regextype posix-egrep -type f -regex ".*\.zip$" -exec unzip {} -d /usr/local/share/licq/qt-gui \;
# Fix the skins who's tarball includes the full path
test -d /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui &&
find /usr/local/share/licq/qt-gui/usr/local/share/licq/qt-gui -mindepth 1 -maxdepth 1 -type d -exec mv -f {} /usr/local/share/licq/qt-gui/ \;
rm -r /usr/local/share/licq/qt-gui/usr
# One of them tries to create files in /root, just kill it
test -d /usr/local/share/licq/qt-gui/root &&
rm -r /usr/local/share/licq/qt-gui/root
# Fix ownership and permissions of all of the skins, icons, etc.
chown -R root:root /usr/local/share/licq/qt-gui
find /usr/local/share/licq/qt-gui -type d -exec chmod 755 {} \;
find /usr/local/share/licq/qt-gui -type f -exec chmod 644 {} \;