#!/bin/sh ## Advanced.PkgBuild script for: thunderbird ## ## 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="4" NAME="thunderbird" VERSION="1.0.7" SRC_SUFFIX=".tar.bz2" #####--------Common Overrides and Options---------------------- # PRE_FIX="" # EXTRA_CONFIGS="" DOCLIST="LEGAL LICENSE README.txt" # 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. RUNTIME_ONLY="YES" pre_process ; find_source ; make_dirs ; unpack_source ; # Copy the main thunderbird configuration cp $CWD/mozconfig.TB-GTK1 $SRC_DIR/mozconfig # Patch for building Minimo-G12 Browser cp $CWD/Resources/Minimo/Minimo.cpp \ $CWD/Resources/Minimo/icons.h $SRC_DIR/embedding/browser/gtk/tests cd $SRC_DIR/embedding/browser/gtk/tests ; patch -p1 <$CWD/Resources/Minimo/Makefile.diff patch -p1 <$CWD/Resources/Minimo/Minimo-GTK-1.2.diff patch -p1 <$CWD/Resources/Minimo/Minimo-startup-geometry.diff fix_source_perms ; # configure_source ; # compile_source ; cd $SRC_DIR ; ./configure cd $SRC_DIR ; MOZ_PHOENIX=1 make export MOZ_PHOENIX=1 make libs MOZ_PHOENIX=1 DESTDIR=$PKG_DIR make install # Setup the TestGtkEmbed browser for easy use cp -a $CWD/Resources/smallfire $PKG_DIR/usr/bin/smallfire chown root.root $PKG_DIR/usr/bin/smallfire chmod 755 $PKG_DIR/usr/bin/smallfire # Setup the Minimo Browser cp -a $SRC_DIR/embedding/browser/gtk/tests/Minimo $PKG_DIR/usr/lib/thunderbird-1.0.7/Minimo cp -a $CWD/Resources/minimo $PKG_DIR/usr/bin/minimo chown root.root $PKG_DIR/usr/bin/minimo chmod 755 $PKG_DIR/usr/bin/minimo # fake_install ; fix_pkg_perms ; strip_bins ; create_docs ; compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.