wok annotate thunderbird/receipt @ rev 6160
Up: thunderbird (3.1.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Sep 10 12:19:45 2010 +0200 (2010-09-10) |
parents | 0ea0c9ea900a |
children | 4aef4f201414 |
rev | line source |
---|---|
domcox@6080 | 1 # SliTaz package receipt. |
domcox@6080 | 2 |
domcox@6080 | 3 PACKAGE="thunderbird" |
domcox@6160 | 4 VERSION="3.1.3" |
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@6097 | 13 TAGS="email pop imap smtp" |
domcox@6137 | 14 LANG="de es_ES fr en_GB pt_PT pt_BR ru" |
domcox@6080 | 15 |
domcox@6080 | 16 # Rules to configure and make the package. |
domcox@6080 | 17 compile_rules() |
domcox@6080 | 18 { |
domcox@6080 | 19 # WARNING: long compile time. |
domcox@6080 | 20 # Requirements: |
domcox@6080 | 21 # - 512MB RAM with lots of available swap space. Additional RAM will |
domcox@6080 | 22 # significantly decrease build time. |
domcox@6080 | 23 # - At least 2.5 GB of disk space. |
domcox@6080 | 24 |
domcox@6080 | 25 # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables |
domcox@6080 | 26 # and to have a nice clean. |
domcox@6080 | 27 cd $WOK/$PACKAGE |
domcox@6080 | 28 echo -n "Checking source" |
domcox@6080 | 29 [ -d comm-* ] && mv comm-* $PACKAGE-$VERSION 2>/dev/null |
domcox@6080 | 30 [ -d $PACKAGE-$VERSION ] || (echo "src not found, exiting" ; exit 1) |
domcox@6080 | 31 status |
domcox@6080 | 32 # add config |
domcox@6080 | 33 cp -a stuff/thunderbird.mozconfig.conf $src/.mozconfig |
domcox@6080 | 34 # languages |
domcox@6080 | 35 echo "# languages" >> $src/.mozconfig |
domcox@6080 | 36 echo "mk_ad_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig |
domcox@6080 | 37 # for a quick build |
domcox@6080 | 38 echo "# build quicker" >> $src/.mozconfig |
domcox@6080 | 39 echo 'mk_add_options MOZ_MAKE_FLAGS="-j4"' >> $src/.mozconfig |
domcox@6080 | 40 # build |
domcox@6080 | 41 cd $src |
domcox@6080 | 42 ./configure $CONFIGURE_ARGS && |
domcox@6080 | 43 make && |
domcox@6080 | 44 make DESTDIR=$PWD/_pkg install |
domcox@6080 | 45 } |
domcox@6080 | 46 |
domcox@6080 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@6080 | 48 genpkg_rules() |
domcox@6080 | 49 { |
domcox@6080 | 50 mkdir -p $fs/usr |
domcox@6080 | 51 # program |
domcox@6080 | 52 cp -a $_pkg/usr/lib $fs/usr |
domcox@6080 | 53 cp -a $_pkg/usr/bin $fs/usr |
domcox@6080 | 54 # adding mime-type (x-html) |
domcox@6080 | 55 cp stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile |
domcox@6080 | 56 # icons and desktop file |
domcox@6080 | 57 mkdir -p $fs/usr/share/applications |
domcox@6080 | 58 cp -a stuff/thunderbird.desktop $fs/usr/share/applications |
domcox@6080 | 59 mkdir -p $fs/usr/share/pixmaps |
domcox@6080 | 60 cp -a stuff/thunderbird-icon.png $fs/usr/share/pixmaps |
domcox@6080 | 61 } |