CWD=`pwd` PKG=/tmp/package-mozilla rm -rf $PKG mkdir -p $PKG/usr VERSION=1.4 ARCH=i486 BUILD=1 cd /tmp rm -rf mozilla tar xjvf $CWD/mozilla-source-$VERSION.tar.bz2 cd mozilla chown -R root.root . BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 \ CFLAGS="-O2 -march=i486 -mcpu=i686" \ ./configure --prefix=/usr \ --enable-optimize \ --disable-debug \ --with-default-mozilla-five-home=/usr/lib/mozilla-1.4 \ --enable-strip-libs \ --disable-tests \ --disable-short-wchar \ --enable-nspr-autoconf \ --enable-extensions=default,irc \ --enable-crypto \ --disable-xprint \ --without-system-nspr \ --with-system-zlib \ --disable-freetype2 \ --enable-xft BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 make -s export BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 make -s libs BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 DESTDIR=$PKG make install # Install nss headers. Obsolete? mkdir -p $PKG/usr/include/mozilla-${VERSION}/nss find security/nss/lib -name "*.h" -type f -exec cp -a {} $PKG/usr/include/mozilla-${VERSION}/nss \; chown -R root.root $PKG/usr/include/mozilla-${VERSION}/nss chmod 644 $PKG/usr/include/mozilla-${VERSION}/nss/* # Move nss libraries into /usr/lib. Even more obsolete? (Enough to get commented out for now :) #( cd $PKG/usr/lib/mozilla-${VERSION} # mv mozilla-nss libnss3.so libnssckbi.so libsmime3.so libsoftokn3.so libssl3.so .. #) chown -R root.bin $PKG/usr/bin ( cd $PKG find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) ( cd $PKG/usr/man find . -name "*.?" | xargs gzip -9 ) mkdir -p $PKG/usr/share/gnome/apps/Internet cp -a $CWD/*.desktop $PKG/usr/share/gnome/apps/Internet chown -R root.root $PKG/usr/share/gnome/apps/Internet chmod 644 $PKG/usr/share/gnome/apps/Internet/* mkdir -p $PKG/usr/share/pixmaps cp -a $CWD/*.gif $CWD/*.png $PKG/usr/share/pixmaps chown -R root.root $PKG/usr/share/pixmaps chmod 644 $PKG/usr/share/pixmaps/* mkdir -p $PKG/usr/doc/mozilla-$VERSION cp -a \ LEGAL LICENSE README.txt \ $PKG/usr/doc/mozilla-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd /tmp/package-mozilla makepkg -l y -c n ../mozilla-$VERSION-$ARCH-$BUILD.tgz