wok-undigest view thunderbird/receipt @ rev 953

Up: thunderbird (17.0.4esr)
author Dominique Corbex <domcox@slitaz.org>
date Tue Mar 12 23:11:09 2013 +0100 (2013-03-12)
parents d8d8b62ac34d
children a3f63c434c51
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird"
4 VERSION="17.0.4esr"
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 mozilla-common"
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 # WARNING: At least 600 MB free disk space (1 GB recommended)
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, Exception (Bug#696763) msgs
37 make -f client.mk | egrep -v "c++|nsinstall|python|Exception" &&
38 make -C obj-thunderbird/mail/installer
40 # install
41 # locate tarball
42 local tarball tarpath fn1 fn2
43 tarpath=$src/obj-thunderbird/mozilla/dist
44 fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
45 fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2"
46 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
47 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found"
48 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
49 # extract tarball
50 mkdir -p $install/usr/lib/thunderbird-$VERSION &&
51 tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \
52 --strip-components=1 &&
53 # install symlink in /usr/bin
54 mkdir -p $install/usr/bin &&
55 ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 # program
62 printf "Installing program.."
63 mkdir -p $fs/usr/lib &&
64 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
65 cp -a $install/usr/bin $fs/usr
66 status
68 # add Mission Control Desktop
69 printf "Installing Mission Control Desktop.."
70 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref &&
71 touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg
72 status
74 # slitaz prefs.
75 printf "Installing SliTaz prefs.."
76 cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ &&
77 # slitaz search plugins
78 cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins &&
79 status
81 # mozilla-common files
82 # dictionaries
83 printf "Installing common dictionnaries.."
84 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
85 ln -sf ../mozilla-common-$VERSION/dictionaries \
86 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
87 status
88 # plugin-container
89 printf "Installing common plugin-container"
90 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
91 ln -sf ../mozilla-common-$VERSION/plugin-container \
92 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
93 status
94 # mozilla-xremote-client
95 printf "Installing common mozilla-xremote-client"
96 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
97 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
98 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
99 status
100 # components/libdbusservice.so
101 # components/libmozgnome.so
102 for file in libdbusservice.so libmozgnome.so; do
103 printf "Installing common components/$file"
104 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
105 ln -sf ../../mozilla-common-$VERSION/components/$file \
106 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
107 status
108 done
109 # chrome.manifest
110 printf "Installing common chrome.manifest"
111 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
112 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
113 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
114 status
116 # run-mozilla.sh
117 printf "Installing common run-mozilla.sh"
118 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
119 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
120 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
121 status
123 # libmozalloc.so
124 printf "Installing common libmozalloc.so"
125 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
126 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
127 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
128 status
129 }