#!/bin/sh ## Advanced.PkgBuild script for: mozilla ## ## Amigo PkgBuild-0.9 - 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="1" NAME="mozilla" VERSION="1.6" 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/libexec/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 ; BUILD_MODULES=all BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 \ CFLAGS="-O2 -march=i486 -mcpu=i686" \ ./configure --prefix=/usr \ --with-user-appdir=".mozilla" \ --with-default-mozilla-five-home=/usr/lib/mozilla-${VERSION} \ --enable-extensions=default,irc \ --enable-calendar \ --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 \ --enable-reorder \ --disable-installer \ --enable-uconv BUILD_MODULES=all BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 make -s export BUILD_MODULES=all BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 make -s libs BUILD_MODULES=all BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 DESTDIR=$PKG_DIR make install # Install nss headers. mkdir -p $PKG_DIR/usr/include/mozilla-${VERSION}/nss find security/nss/lib -name "*.h" -type f -exec cp -a {} $PKG_DIR/usr/include/mozilla-${VERSION}/nss \; chown -R root.root $PKG_DIR/usr/include/mozilla-${VERSION}/nss chmod 644 $PKG_DIR/usr/include/mozilla-${VERSION}/nss/* # Move nss libraries into /usr/lib. ( cd $PKG_DIR/usr/lib/mozilla-${VERSION} && ( for nsslib in libnspr4.so libnss3.so libplc4.so libplds4.so libsmime3.so libsoftokn3.so libssl3.so ; do # Move library: mv $nsslib .. # Link to it. ln -sf ../$nsslib . done ) ) # moz does this above # ( cd $PKG_DIR # find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded # ) mkdir -p $PKG_DIR/usr/share/gnome/apps/Internet cp -a $CWD/Resources/*.desktop $PKG_DIR/usr/share/gnome/apps/Internet chown -R root.root $PKG_DIR/usr/share/gnome/apps/Internet chmod 644 $PKG_DIR/usr/share/gnome/apps/Internet/* mkdir -p $PKG_DIR/usr/share/pixmaps cp -a $CWD/Resources/*.gif $CWD/Resources/*.png $PKG_DIR/usr/share/pixmaps chown -R root.root $PKG_DIR/usr/share/pixmaps chmod 644 $PKG_DIR/usr/share/pixmaps/* 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.