wok view thunderbird/receipt @ rev 14535
firefox-dev: Up to 17.0.6esr
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 22 19:05:54 2013 +0200 (2013-05-22) |
parents | cd72738a73b8 |
children | 39421494481d |
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird"
4 VERSION="17.0.5esr"
5 CATEGORY="network"
6 SHORT_DESC="Mozilla's Thunderbird email application."
7 MAINTAINER="domcox@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
9 WEB_SITE="http://www.mozilla.org/"
10 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
12 DEPENDS="alsa-lib gtk+ zip unzip libevent libvpx nspr nss sqlite \
13 dbus dbus-glib glib libnotify libfirefox"
14 BUILD_DEPENDS="alsa-lib-dev gtk+-dev bzip2 zip unzip coreutils \
15 libevent-dev libvpx-dev nspr-dev nss-dev yasm sqlite-dev \
16 dbus-dev dbus-glib-dev libnotify-dev freetype fontconfig tar gzip mesa-dev"
17 TAGS="email pop imap smtp"
19 # Rules to configure and make the package.
20 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease
21 # build time.
22 # At least 2.5 GB free disk space
25 compile_rules()
26 {
27 cd $src
28 # load mozconfig
29 cp -a $stuff/mozconfig $src
31 # fix path of 'check_debug_ranges.py'
32 ln -s $src/mozilla/build/autoconf/check_debug_ranges.py \
33 $src/build/autoconf/check_debug_ranges.py
35 # build and create a thunderbird tarball
36 # reducing log size: hide c++, nsinstall, python msgs
37 # Exception... Component returned failure code: known bug #696763
38 make -f client.mk | egrep -v "c++|nsinstall|python" &&
39 make -C obj-thunderbird/mail/installer
41 # install
42 # locate tarball
43 local tarball tarpath fn1 fn2
44 tarpath=$src/obj-thunderbird/mozilla/dist
45 fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
46 fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2"
47 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
48 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found"
49 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
50 # extract tarball
51 mkdir -p $install/usr/lib/thunderbird-$VERSION &&
52 tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \
53 --strip-components=1 &&
54 # install symlink in /usr/bin
55 mkdir -p $install/usr/bin &&
56 ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 # program
63 printf "Installing program.."
64 mkdir -p $fs/usr/lib &&
65 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
66 cp -a $install/usr/bin $fs/usr
67 status
69 # add Mission Control Desktop
70 printf "Installing Mission Control Desktop.."
71 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref &&
72 touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg
73 status
75 # slitaz prefs.
76 printf "Installing SliTaz prefs.."
77 cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ &&
78 # slitaz search plugins
79 cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins &&
80 status
82 # mozilla-common files
83 # dictionaries
84 printf "Installing common dictionnaries.."
85 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
86 ln -sf ../mozilla-common-$VERSION/dictionaries \
87 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
88 status
89 # plugin-container
90 printf "Installing common plugin-container"
91 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
92 ln -sf ../mozilla-common-$VERSION/plugin-container \
93 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
94 status
95 # mozilla-xremote-client
96 printf "Installing common mozilla-xremote-client"
97 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
98 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
99 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
100 status
101 # components/libdbusservice.so
102 # components/libmozgnome.so
103 for file in libdbusservice.so libmozgnome.so; do
104 printf "Installing common components/$file"
105 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
106 ln -sf ../../mozilla-common-$VERSION/components/$file \
107 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
108 status
109 done
110 # chrome.manifest
111 printf "Installing common chrome.manifest"
112 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
113 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
114 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
115 status
117 # run-mozilla.sh
118 printf "Installing common run-mozilla.sh"
119 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
120 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
121 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
122 status
124 # libmozalloc.so
125 printf "Installing common libmozalloc.so"
126 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
127 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
128 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
129 status
130 }