#!/bin/sh # Heavily based on the Slackware 11.0 SlackBuild CWD=`pwd` TMP=${TMP:-/tmp} PKG=$TMP/package-mozilla-thunderbird # This is not a source build script. Rather, it builds a Slackware # package from the official binary tarball available from mozilla.org. # Using the official binaries seems like the most direct way to satify # the Mozilla project's concerns about quality control (and thus to # provide the most quality-certified package possible), and therefore # be able to use the official trademarks and logos. # # Thanks to the folks at the Mozilla Foundation for permission to # distribute this, and for all the great work! :-) NAME=mozilla-thunderbird-en-us VERSION=2.0.0.4 ARCH=${ARCH:-i686} BUILD=1sl if [ ! -d $TMP ]; then mkdir -p $TMP fi rm -rf $PKG mkdir -p $PKG/usr/lib ( cd $PKG/usr/lib tar xzf $CWD/thunderbird-$VERSION.tar.gz mv thunderbird thunderbird-$VERSION ln -sf thunderbird-$VERSION thunderbird cd thunderbird-$VERSION zcat $CWD/mozilla-firefox-simple.diff.gz | patch -p1 --verbose --backup --suffix=.orig rm -f defaults/pref/all-thunderbird.js.orig ) mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin ln -sf /usr/lib/thunderbird-$VERSION/thunderbird . ) cd $PKG/usr/lib/thunderbird-$VERSION mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a *.txt $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/usr/share/applications cat $CWD/mozilla-thunderbird.desktop > $PKG/usr/share/applications/mozilla-thunderbird.desktop mkdir -p $PKG/usr/share/pixmaps cat $CWD/thunderbird.png > $PKG/usr/share/pixmaps/thunderbird.png mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild cd $PKG chown -R root:root . makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi