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