#!/bin/sh ## Advanced.PkgBuild script for: mozilla ## ## Amigo PkgBuild-0.3 - Gilbert Ashley ## ##### ------------Standard Package Variables------------------- # Most source code only needs these 4 variables set. # Set SRC_SUFFIX to ".tar.gz" ".tgz" ".tar.bz2" or ".tbz" BUILD="5" NAME="mozilla" VERSION="1.7.12" SRC_SUFFIX=".tar.bz2" SRC_UNPACK_NAME="mozilla" #####--------Common Overrides and Options---------------------- # PRE_FIX="" # EXTRA_CONFIGS="" DOCLIST="README.txt LICENSE LEGAL" # GROUP_NAME="" #######----------------Processing------------------------------ # Get functions and read in configuration files source /usr/share/Amigo/PkgBuild/FUNCTIONS ; # This template calls each process individually so you can add # extra instructions between processes, or even leave out steps. pre_process ; find_source ; make_dirs ; unpack_source ; fix_source_perms ; # configure_source ; # compile_source ; # fake_install ; cd $SRC_DIR ; MINIMO=1 LIBS=-lsupc++ \ CFLAGS="-Os -march=i486 -mcpu=i686" \ ./configure --prefix=/usr \ --with-user-appdir=".minimo" \ --with-default-mozilla-five-home=/usr/lib/minimo \ --disable-extensions \ --disable-freetype2 \ --disable-freetype2-tests \ --enable-xft \ --enable-toolkit=gtk \ --enable-default-toolkit=gtk \ --without-system-nspr \ --enable-nspr-autoconf \ --with-system-zlib \ --enable-crypto \ --disable-xprint \ --enable-optimize=$CFLAGS \ --enable-strip \ --enable-strip-libs \ --disable-debug \ --disable-tests \ --disable-logging \ --enable-reorder \ --disable-installer \ --disable-profilesharing \ --disable-profilelocking \ --enable-single-profile \ --disable-accessibility \ --disable-composer \ --enable-plaintext-editor-only \ --disable-mailnews \ --disable-ldap \ --disable-postscript \ --disable-mathml \ --disable-jsd \ --disable-oji \ --disable-jsloader \ --disable-xpinstall \ --disable-xpfe-components \ --disable-necko-disk-cache \ --enable-necko-small-buffers \ --enable-necko-protocols=http,file,res,jar \ --enable-image-encoders=png,gif,jpeg \ --disable-view-source MINIMO=1 make export MINIMO=1 make libs MINIMO=1 DESTDIR=$PKG_DIR make install fix_pkg_perms ; strip_bins ; create_docs ; cp $SRC_DIR/xpfe/global/buildconfig.html $PKG_DIR/usr/doc/$NAME-$VERSION chmod 644 $PKG_DIR/usr/doc/$NAME-$VERSION/buildconfig.html compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.