#!/bin/sh CWD=`pwd` PKG=/tmp/package-gaim VERSION=0.58 ARCH=i386 BUILD=3 rm -rf $PKG mkdir -p $PKG cd /tmp tar xjvf $CWD/gaim-$VERSION.tar.bz2 cd gaim-$VERSION chown -R root.root . # --disable-artsc to avoid depending on KDE. CFLAGS="-O2 -march=i386 -mcpu=i686" ./configure --prefix=/usr \ --disable-artsc \ --enable-panel \ i386-slackware-linux make make install DESTDIR=$PKG make clean # I see no reason not to include the non-panel version as well since # they're named differently and won't collide. That way everyone is happy. # But, if you're still unhappy because space on your hard drive is being # wasted, then just delete one of them. :-) CFLAGS="-O2 -march=i386 -mcpu=i686" ./configure --prefix=/usr \ --disable-artsc \ i386-slackware-linux make make install DESTDIR=$PKG strip $PKG/usr/bin/* chown -R root.bin $PKG/usr/bin find $PKG/usr/lib -name "*.so" | xargs --strip-unneeded 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/man/man1/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n ../gaim-$VERSION-$ARCH-$BUILD.tgz