#!/bin/sh CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/home/source/build fi PKG=$TMP/package-firebird VERSION=0.6.1 ARCH=i386 BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG cd $TMP tar xjvf $CWD/MozillaFirebird-source-$VERSION.tar.bz2 cd mozilla cat $CWD/mozconfig > $TMP/mozilla/.mozconfig # CVS Builds: #cat $CWD/mozconfig > $CWD/mozilla/.mozconfig #cd $CWD/mozilla export MOZ_PHOENIX=1 ./configure make make install DESTDIR=$PKG # don't overwrite mozilla-config from 1.4 rm -f $PKG/usr/bin/mozilla-config mkdir -p $PKG/usr/doc/MozillaFirebird-$VERSION cp -a LEGAL LICENSE README.txt \ $PKG/usr/doc/MozillaFirebird-$VERSION chmod 644 $PKG/usr/doc/MozillaFirebird-$VERSION/* chown root.root $PKG/usr/doc/MozillaFirebird-$VERSION/* mkdir -p $PKG/usr/share/gnome/apps/Internet cat $CWD/firebird.desktop > $PKG/usr/share/gnome/apps/Internet/firebird.desktop mkdir -p $PKG/usr/share/pixmaps cp $CWD/firebird-icon.png $PKG/usr/share/pixmaps find $PKG -type f | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded gzip -9 $PKG/usr/man/*/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/MozillaFirebird-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/mozilla rm -rf $PKG fi