wok-next view thunderbird/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 0c430fcaf2d9 |
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="devel@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 BUILD_DEPENDS="alsa-lib-dev gtk2-dev bzip2 zip unzip coreutils \
14 libevent-dev libvpx-dev nspr-dev nss-dev yasm sqlite3-dev \
15 dbus-dev dbus-glib-dev libnotify-dev freetype fontconfig tar gzip mesa-dev \
16 libjpeg-turbo-dev"
18 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease
19 # build time.
20 # At least 2.5 GB free disk space
22 compile_rules() {
23 # load mozconfig
24 cp -a $stuff/mozconfig $src
26 # fix path of 'check_debug_ranges.py'
27 ln -s $src/mozilla/build/autoconf/check_debug_ranges.py \
28 $src/build/autoconf/check_debug_ranges.py
30 # build and create a thunderbird tarball
31 # reducing log size: hide c++, nsinstall, python msgs
32 # Exception... Component returned failure code: known bug #696763
33 make -f client.mk | egrep -v "c++|nsinstall|python" &&
34 make -C obj-thunderbird/mail/installer
36 # install
37 # locate tarball
38 local tarball tarpath fn1 fn2
39 tarpath=$src/obj-thunderbird/mozilla/dist
40 fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
41 fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2"
42 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
43 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found"
44 [ -z "$tarball" ] && echo "ERROR: tarball not found" && return 1
45 # extract tarball
46 mkdir -p $install/usr/lib/thunderbird-$VERSION &&
47 tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \
48 --strip-components=1 &&
49 # install symlink in /usr/bin
50 mkdir -p $install/usr/bin &&
51 ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin
52 }
54 genpkg_rules() {
55 # program
56 printf "Installing program.."
57 mkdir -p $fs/usr/lib &&
58 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
59 cp -a $install/usr/bin $fs/usr
60 status
62 # add Mission Control Desktop
63 printf "Installing Mission Control Desktop.."
64 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref &&
65 touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg
66 status
68 # slitaz prefs.
69 printf "Installing SliTaz prefs.."
70 cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ &&
71 # slitaz search plugins
72 cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins &&
73 status
75 # mozilla-common files
76 # dictionaries
77 printf "Installing common dictionnaries.."
78 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
79 ln -sf ../mozilla-common-$VERSION/dictionaries \
80 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
81 status
82 # plugin-container
83 printf "Installing common plugin-container"
84 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
85 ln -sf ../mozilla-common-$VERSION/plugin-container \
86 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
87 status
88 # mozilla-xremote-client
89 printf "Installing common mozilla-xremote-client"
90 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
91 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
92 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
93 status
94 # components/libdbusservice.so
95 # components/libmozgnome.so
96 for file in libdbusservice.so libmozgnome.so; do
97 printf "Installing common components/$file"
98 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
99 ln -sf ../../mozilla-common-$VERSION/components/$file \
100 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
101 status
102 done
103 # chrome.manifest
104 printf "Installing common chrome.manifest"
105 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
106 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
107 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
108 status
110 # run-mozilla.sh
111 printf "Installing common run-mozilla.sh"
112 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
113 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
114 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
115 status
117 # libmozalloc.so
118 printf "Installing common libmozalloc.so"
119 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
120 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
121 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
122 status
124 DEPENDS="alsa-lib gtk2 zip unzip libevent libvpx nspr nss sqlite3 \
125 dbus dbus-glib glib libnotify libfirefox"
126 TAGS="email pop imap smtp"
127 }