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