wok annotate thunderbird/receipt @ rev 6080

Add: Thunderbird (3.1.2) Mozilla mail
author Dominique Corbex <domcox@slitaz.org>
date Sun Aug 29 11:04:31 2010 +0200 (2010-08-29)
parents
children 87c39df98536
rev   line source
domcox@6080 1 # SliTaz package receipt.
domcox@6080 2
domcox@6080 3 PACKAGE="thunderbird"
domcox@6080 4 VERSION="3.1.2"
domcox@6080 5 CATEGORY="network"
domcox@6080 6 SHORT_DESC="Mozilla's Thunderbird email application."
domcox@6080 7 MAINTAINER="domcox@slitaz.org"
domcox@6080 8 DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg nss sqlite xorg-libX11 xorg-libXdamage xorg-libXt"
domcox@6080 9 BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype fontconfig gtk+-dev libIDL libnotify-dev make nss-dev perl pkg-config python sqlite-dev tar wireless_tools-dev xorg-dev xorg-libXt-dev zip"
domcox@6080 10 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
domcox@6080 11 WEB_SITE="www.mozillamessaging.com"
domcox@6080 12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
domcox@6080 13 LANG="de es fr en_GB pt_PT pt_BR ru"
domcox@6080 14
domcox@6080 15 # Rules to configure and make the package.
domcox@6080 16 compile_rules()
domcox@6080 17 {
domcox@6080 18 # WARNING: long compile time.
domcox@6080 19 # Requirements:
domcox@6080 20 # - 512MB RAM with lots of available swap space. Additional RAM will
domcox@6080 21 # significantly decrease build time.
domcox@6080 22 # - At least 2.5 GB of disk space.
domcox@6080 23
domcox@6080 24 # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables
domcox@6080 25 # and to have a nice clean.
domcox@6080 26 cd $WOK/$PACKAGE
domcox@6080 27 echo -n "Checking source"
domcox@6080 28 [ -d comm-* ] && mv comm-* $PACKAGE-$VERSION 2>/dev/null
domcox@6080 29 [ -d $PACKAGE-$VERSION ] || (echo "src not found, exiting" ; exit 1)
domcox@6080 30 status
domcox@6080 31 # add config
domcox@6080 32 cp -a stuff/thunderbird.mozconfig.conf $src/.mozconfig
domcox@6080 33 # languages
domcox@6080 34 echo "# languages" >> $src/.mozconfig
domcox@6080 35 echo "mk_ad_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig
domcox@6080 36 # for a quick build
domcox@6080 37 echo "# build quicker" >> $src/.mozconfig
domcox@6080 38 echo 'mk_add_options MOZ_MAKE_FLAGS="-j4"' >> $src/.mozconfig
domcox@6080 39 # build
domcox@6080 40 cd $src
domcox@6080 41 ./configure $CONFIGURE_ARGS &&
domcox@6080 42 make &&
domcox@6080 43 make DESTDIR=$PWD/_pkg install
domcox@6080 44 }
domcox@6080 45
domcox@6080 46 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@6080 47 genpkg_rules()
domcox@6080 48 {
domcox@6080 49 mkdir -p $fs/usr
domcox@6080 50 # program
domcox@6080 51 cp -a $_pkg/usr/lib $fs/usr
domcox@6080 52 cp -a $_pkg/usr/bin $fs/usr
domcox@6080 53 # adding mime-type (x-html)
domcox@6080 54 cp stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
domcox@6080 55 # icons and desktop file
domcox@6080 56 mkdir -p $fs/usr/share/applications
domcox@6080 57 cp -a stuff/thunderbird.desktop $fs/usr/share/applications
domcox@6080 58 mkdir -p $fs/usr/share/pixmaps
domcox@6080 59 cp -a stuff/thunderbird-icon.png $fs/usr/share/pixmaps
domcox@6080 60 }