wok annotate thunderbird/receipt @ rev 11863

thunderbird: update mozconfig
author Dominique Corbex <domcox@slitaz.org>
date Mon Feb 27 20:16:43 2012 +0100 (2012-02-27)
parents 74f603c507d4
children 9c762d56b413
rev   line source
domcox@6080 1 # SliTaz package receipt.
domcox@6080 2
domcox@6080 3 PACKAGE="thunderbird"
slaxemulator@11820 4 VERSION="10.0.2"
domcox@6080 5 CATEGORY="network"
domcox@6080 6 SHORT_DESC="Mozilla's Thunderbird email application."
domcox@6080 7 MAINTAINER="domcox@slitaz.org"
domcox@11863 8 DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg libevent libnotify nspr nss \
domcox@11863 9 sqlite xorg-libX11 xorg-libXdamage xorg-libXt"
domcox@11863 10 BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype fontconfig \
domcox@11863 11 gtk+-dev libIDL libevent-dev libnotify-dev make mesa-dev nspr-dev \
domcox@11863 12 nss-dev perl pkg-config python sqlite-dev tar wireless_tools-dev \
domcox@11863 13 xorg-dev xorg-libXt-dev zip"
domcox@6080 14 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
domcox@11863 15 WEB_SITE="http://www.mozilla.org/"
domcox@6080 16 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
domcox@6097 17 TAGS="email pop imap smtp"
domcox@6137 18 LANG="de es_ES fr en_GB pt_PT pt_BR ru"
domcox@6080 19
domcox@6080 20 # Rules to configure and make the package.
domcox@6080 21 compile_rules()
domcox@6080 22 {
domcox@11863 23 cat <<EOF
domcox@11863 24 WARNING: long compile time.
domcox@11863 25 Requirements:
domcox@11863 26 - 512MB RAM with lots of available swap space. Additional RAM will
domcox@11863 27 significantly decrease build time.
domcox@11863 28 - At least 2.5 GB of disk space.
domcox@11863 29 EOF
domcox@6080 30 # add config
domcox@11863 31 cp -a $stuff/thunderbird.mozconfig.conf $src/.mozconfig
domcox@6080 32 # languages
domcox@6080 33 echo "# languages" >> $src/.mozconfig
slaxemulator@11820 34 echo "mk_add_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig
domcox@6080 35 # for a quick build
domcox@6080 36 echo "# build quicker" >> $src/.mozconfig
gokhlayeh@11574 37 echo 'mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS"' >> $src/.mozconfig
domcox@6080 38 # build
domcox@6080 39 cd $src
slaxemulator@11820 40 patch -Np1 -i $stuff/thunderbird-3.0-lang.patch
slaxemulator@11820 41 patch -Np1 -i $stuff/thunderbird-install-dir.patch
domcox@6080 42 ./configure $CONFIGURE_ARGS &&
domcox@6080 43 make &&
slaxemulator@11820 44 make DESTDIR=$DESTDIR 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 {
slaxemulator@11820 50 mkdir -p $fs/usr/lib
domcox@6080 51 # program
slaxemulator@11820 52 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
domcox@6080 53 cp -a $_pkg/usr/bin $fs/usr
domcox@6080 54 # adding mime-type (x-html)
slaxemulator@11820 55 cp $stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE/defaults/profile
domcox@6080 56 # icons and desktop file
domcox@6080 57 mkdir -p $fs/usr/share/applications
slaxemulator@11820 58 cp -a $stuff/thunderbird.desktop $fs/usr/share/applications
domcox@6080 59 mkdir -p $fs/usr/share/pixmaps
slaxemulator@11820 60 cp -a $stuff/thunderbird-icon.png $fs/usr/share/pixmaps
domcox@6080 61 }
domcox@11863 62
domcox@11863 63
domcox@11863 64