#!/bin/bash ## src2pkg script for: seamonkey ## Auto-generated by src2pkg-2.5 ## src2pkg - Copyright 2005-2011 Gilbert Ashley SOURCE_NAME='seamonkey-1.1.19.source.tar.bz2' NAME='seamonkey' VERSION='1.1.19' # ARCH='' # BUILD='1' # PRE_FIX='usr' # Any extra options go here: ALL_FLAGS="-O2 -march=i586 -mtune=i686 -freorder-blocks -fno-reorder-functions -finline-functions -fno-strict-aliasing -fomit-frame-pointer -fno-ident -pipe -DNDEBUG -DG_DISABLE_ASSERT -fexpensive-optimizations" EXTRA_CONFIGS="--enable-application=suite \ --enable-extensions=default,tasks,irc \ --enable-optimize=\"$ALL_FLAGS\" --with-default-mozilla-five-home=/usr/lib${LIBDIRSUFFIX}/seamonkey-${VERSION} \ --disable-debug --disable-tests --disable-pedantic \ --disable-mochitest --disable-crashreporter \ --disable-installer --disable-updater \ --disable-short-wchar --with-pthreads \ --without-system-nspr --enable-nspr-autoconf --without-system-nss \ --with-system-zlib --with-system-jpeg --with-system-png \ --enable-svg --enable-system-cairo --disable-canvas \ --disable-xprint --enable-xft --enable-nspr-autoconf \ --enable-storage=no --enable-crypto --enable-mathml" MAKE_COMMAND='make export libs' # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms # configure_source # ( cd $SRC_DIR && ./configure --prefix=/usr --enable-application=suite \ --enable-extensions=default,tasks,irc \ --enable-optimize="$ALL_FLAGS" \ --with-default-mozilla-five-home=/usr/lib${LIBDIRSUFFIX}/seamonkey-${VERSION} \ --disable-debug --disable-tests --disable-pedantic \ --disable-mochitest --disable-crashreporter \ --disable-installer --disable-updater \ --disable-short-wchar --with-pthreads \ --without-system-nspr --enable-nspr-autoconf --without-system-nss \ --with-system-zlib --with-system-jpeg --with-system-png \ --enable-svg --enable-system-cairo --disable-canvas \ --disable-xprint --enable-xft --enable-nspr-autoconf \ --enable-storage=no --enable-crypto --enable-mathml ) # compile_source # If used, the 'build' function replaces these 3 (cd $SRC_DIR && $MAKE_COMMAND) fake_install # # manualy-written lines here adapted from the seamonkey SlackBuild # Install nss headers. mkdir -p $PKG_DIR/usr/include/seamonkey-${VERSION}/nss find $SRC_DIR/security/nss/lib -name "*.h" -type f -exec cp -a {} $PKG_DIR/usr/include/seamonkey-${VERSION}/nss \; chown -R root:root $PKG_DIR/usr/include/seamonkey-${VERSION}/nss chmod 644 $PKG_DIR/usr/include/seamonkey-${VERSION}/nss/* # Create a more generic include files symlink: ( cd $PKG_DIR/usr/include if [ ! -e seamonkey ]; then ln -sf seamonkey-${VERSION} seamonkey fi ) # This remains the standard plugin directory for all browsers. mkdir -p $PKG_DIR/usr/lib${LIBDIRSUFFIX}/mozilla/plugins # Some software won't compile without this symlink: ( cd $PKG_DIR/usr/lib${LIBDIRSUFFIX} if [ ! -e seamonkey ]; then ln -sf seamonkey-${VERSION} seamonkey fi ) # Let the nspr be found by gxine: ( cd $PKG_DIR/usr/lib${LIBDIRSUFFIX}/pkgconfig; ln -s seamonkey-nspr.pc nspr.pc ) mkdir -p $PKG_DIR/usr/share/applications cp -a $PATCHES_DIR/$NAME-patches/*.desktop $PKG_DIR/usr/share/applications chown -R root:root $PKG_DIR/usr/share/applications chmod 644 $PKG_DIR/usr/share/applications/* mkdir -p $PKG_DIR/usr/share/pixmaps cp -a $PATCHES_DIR/$NAME-patches/*.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 compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)