#!/bin/sh # Heavily based on the Slackware 12.0 SlackBuild # http://www.licq.org/ # Packagers Bart & Gohanz # http://www.slacky.it CWD=`pwd` TMP=${TMP:-/tmp/tgz} PKG=$TMP/package-licq NAME=licq VERSION=1.3.5 TARGET=i486 ARCH=i486 BUILD=1as if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mtune=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG echo "+===========+" echo "| licq-$VERSION |" echo "+===========+" cd $TMP tar xjvf $CWD/$NAME-$VERSION.tar.bz2 cd $NAME-$VERSION chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; # Main daemon compilation CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( qt-gui ) compilation cd ./plugins/qt-gui ./configure --with-x --with-kde --with-qt \ --with-qt-includes=/usr/lib/qt/include \ --with-qt-libraries=/usr/lib/qt/lib \ --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( Msn ) compilation cd ../msn ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( Auto-reply ) compilation cd ../auto-reply ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( Console) compilation cd ../console ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( Email) compilation cd ../email ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( RMS) compilation cd ../rms ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG # Plugin ( Osd) compilation cd ../osd ./configure --prefix=/usr \ --program-prefix= \ --program-suffix= \ --build=$TARGET-slackware-linux make make install DESTDIR=$PKG ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) cd $TMP/licq-$VERSION mkdir -p $PKG/usr/doc/licq-$VERSION cp -a INSTALL LICENSE README README.FREEBSD README.GPG README.ICS README.OPENSSL \ $PKG/usr/doc/licq-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/licq.SlackBuild > $PKG/usr/doc/licq-$VERSION/licq.SlackBuild cat $CWD/slack-desc > $PKG/usr/doc/licq-$VERSION/slack-desc # Build the package: cd $PKG requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/licq-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP fi