#!/bin/sh # # $Id: gaim.SlackBuild 177 2004-12-10 05:20:38Z freerock $ # # modified for VectorLinux by John Babiak # CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-gaim # # These variables should be changed for the packager and the arguments # to be passed to the ./configure script. They will also be appended # to the end of the slack-desc file. # VL_PACKAGER=JohnB316 VL_CONFIGURE="--prefix=/usr --enable-gnutls=no --enable-nss=yes \ --with-nss-libs=/usr/lib \ --with-nss-includes=/usr/include/nss \ --with-nspr-libs=/usr/lib \ --with-nspr-includes=/usr/include/nspr \ --disable-vv --disable-truespeech --sysconfdir=/etc --localstatedir=/var \ --program-prefix="" --program-suffix="" i486-slackware-linux" VERSION=2.0.0beta3 ARCH=i586 BUILD=4vl6 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG cd $TMP tar xjvf $CWD/gaim-$VERSION.tar.bz2 cd gaim-$VERSION chown -R root.root . if [ ! -r configure ]; then sh autogen.sh fi export CFLAGS="-O2 -march=i586 -mcpu=i686" export CXXFLAGS=$CFLAGS ./configure $VL_CONFIGURE make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/gaim-$VERSION cp -a \ ABOUT-NLS AUTHORS COPYING ChangeLog HACKING NEWS README TODO doc/FAQ doc/CREDITS \ $PKG/usr/doc/gaim-$VERSION chmod 644 $PKG/usr/doc/gaim-$VERSION/* gzip -9 $PKG/usr/X11R6/man/*/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # # append build information to the end of the slack-desc file # cat >> $PKG/install/slack-desc << EOF #---------------------------------------- BUILDDATE: `date` PACKAGER: $VL_PACKAGER HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: $CFLAGS CONFIGURE: `awk "/\.\/configure\ /" $TMP/gaim-$VERSION/config.log` EOF 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 echo "Generating slapt-get dependencies..." requiredbuilder -v -y $PKG echo "Building package..." makepkg -l y -c n $TMP/gaim-$VERSION-$ARCH-$BUILD.tlz