wok-next annotate thunderbird/receipt @ rev 11820
Up: thunderbird to 10.0.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 25 14:16:39 2012 -0500 (2012-02-25) |
parents | 8e4c74abdf74 |
children | cc29898c3261 |
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" |
slaxemulator@11820 | 8 DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg nss sqlite xorg-libX11 xorg-libXdamage \ |
slaxemulator@11820 | 9 xorg-libXt libnotify libevent libvpx" |
slaxemulator@11820 | 10 BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype-dev fontconfig-dev \ |
slaxemulator@11820 | 11 gtk+-dev libIDL libnotify-dev libvpx-dev nss-dev perl python-dev sqlite-dev \ |
slaxemulator@11820 | 12 tar wireless_tools-dev libevent-dev xorg-dev xorg-libXt-dev zip \ |
slaxemulator@11820 | 13 wireless_tools-dev yasm mesa-dev" |
domcox@6080 | 14 TARBALL="$PACKAGE-$VERSION.source.tar.bz2" |
pascal@6409 | 15 WEB_SITE="http://www.mozillamessaging.com/" |
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@6080 | 23 # WARNING: long compile time. |
domcox@6080 | 24 # Requirements: |
domcox@6080 | 25 # - 512MB RAM with lots of available swap space. Additional RAM will |
domcox@6080 | 26 # significantly decrease build time. |
domcox@6080 | 27 # - At least 2.5 GB of disk space. |
domcox@6080 | 28 |
domcox@6080 | 29 # add config |
slaxemulator@11820 | 30 cp -a $stuff/thunderbird.mozconfig.conf $src/.mozconfig |
domcox@6080 | 31 # languages |
domcox@6080 | 32 echo "# languages" >> $src/.mozconfig |
slaxemulator@11820 | 33 echo "mk_add_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig |
domcox@6080 | 34 # for a quick build |
domcox@6080 | 35 echo "# build quicker" >> $src/.mozconfig |
gokhlayeh@11574 | 36 echo 'mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS"' >> $src/.mozconfig |
domcox@6080 | 37 # build |
domcox@6080 | 38 cd $src |
slaxemulator@11820 | 39 patch -Np1 -i $stuff/thunderbird-3.0-lang.patch |
slaxemulator@11820 | 40 patch -Np1 -i $stuff/thunderbird-install-dir.patch |
domcox@6080 | 41 ./configure $CONFIGURE_ARGS && |
domcox@6080 | 42 make && |
slaxemulator@11820 | 43 make DESTDIR=$DESTDIR 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 { |
slaxemulator@11820 | 49 mkdir -p $fs/usr/lib |
domcox@6080 | 50 # program |
slaxemulator@11820 | 51 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib |
domcox@6080 | 52 cp -a $_pkg/usr/bin $fs/usr |
domcox@6080 | 53 # adding mime-type (x-html) |
slaxemulator@11820 | 54 cp $stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE/defaults/profile |
domcox@6080 | 55 # icons and desktop file |
domcox@6080 | 56 mkdir -p $fs/usr/share/applications |
slaxemulator@11820 | 57 cp -a $stuff/thunderbird.desktop $fs/usr/share/applications |
domcox@6080 | 58 mkdir -p $fs/usr/share/pixmaps |
slaxemulator@11820 | 59 cp -a $stuff/thunderbird-icon.png $fs/usr/share/pixmaps |
domcox@6080 | 60 } |