#!/bin/sh # Heavily based on the Slackware 13.1 SlackBuild # # Written by Loris Vicenzi ( http://www.slacky.eu ) # Last build from atomix600 ( http://www.slacky.eu ) # # 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! :-) PKGNAME=${PKGNAME:-mozilla-firefox-it} VERSION=${VERSION:-3.6.8} ARCH=${ARCH:-i686} BUILD=${BUILD:-2} PKGTYPE=${PKGTYPE:-txz} TAG=${TAG:-sl} CWD=`pwd` TMP=${TMP:-/tmp/buildpkgs/$PKGNAME} PKG=$TMP/package-$PKGNAME OUTPUT=${OUTPUT:-$CWD} SOURCE="http://ftp.pwr.wroc.pl/pub/mozilla/firefox/releases/3.6.8/linux-i686/it/firefox-3.6.8.tar.bz2 " if [ ! -e firefox-$VERSION.tar.bz2 ]; then wget $SOURCE fi if [ ! -d $TMP ]; then mkdir -p $TMP fi rm -rf $PKG mkdir -p $PKG/usr/lib ( cd $PKG/usr/lib tar xjf $CWD/firefox-$VERSION.tar.bz2 mv firefox firefox-$VERSION ln -sf firefox-$VERSION firefox cd firefox-$VERSION zcat $CWD/firefox.diff.gz | patch -p1 --verbose --backup --suffix=.orig rm -f defaults/pref/firefox.js.orig ) mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin ln -sf /usr/lib/firefox-$VERSION/firefox . ) mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION mkdir -p $PKG/usr/lib/mozilla/plugins mkdir -p $PKG/usr/share/applications cat $CWD/mozilla-firefox.desktop > $PKG/usr/share/applications/mozilla-firefox.desktop mkdir -p $PKG/usr/share/pixmaps cat $CWD/firefox.png > $PKG/usr/share/pixmaps/firefox.png mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/$PKGNAME-$VERSION/slack-desc cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild cd $PKG chown -R root:root . requiredbuilder -y -v -s $CWD $PKG makepkg -l y -c n $CWD/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE if [ "$1" = "--cleanup" ]; then rm -rf $PKG fi