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