wok view thunderbird/receipt @ rev 24381

updated blktrace (1.2.0 -> 1.3.0)
author Hans-G?nter Theisgen
date Sun Feb 06 10:30:31 2022 +0100 (2022-02-06)
parents 1ed1fa7d10cd
children b56b38cfd475
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://ftp.mozilla.org/pub/thunderbird/releases/ 2>/dev/null | \
24 sed '/[0-9]*\.[0-9]*\.[0-9]*esr/!d;s|.*">||;s|/.*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease
29 # build time.
30 # At least 2.5 GB free disk space
33 compile_rules()
34 {
35 cd $src
36 # load mozconfig
37 cp -a $stuff/mozconfig $src
39 # fix path of 'check_debug_ranges.py'
40 ln -s $src/mozilla/build/autoconf/check_debug_ranges.py \
41 $src/build/autoconf/check_debug_ranges.py
43 # build and create a thunderbird tarball
44 # reducing log size: hide c++, nsinstall, python msgs
45 # Exception... Component returned failure code: known bug #696763
46 make -f client.mk | egrep -v "c++|nsinstall|python" &&
47 make -C obj-thunderbird/mail/installer
49 # install
50 # locate tarball
51 local tarball tarpath fn1 fn2
52 tarpath=$src/obj-thunderbird/mozilla/dist
53 fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
54 fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-i686.tar.bz2"
55 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
56 [ -e "$fn2" ] && tarball="$fn2" && echo "i686 tarball found"
57 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
58 # extract tarball
59 mkdir -p $install/usr/lib/thunderbird-$VERSION &&
60 tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \
61 --strip-components=1 &&
62 # install symlink in /usr/bin
63 mkdir -p $install/usr/bin &&
64 ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 # program
71 printf "Installing program.."
72 mkdir -p $fs/usr/lib &&
73 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
74 cp -a $install/usr/bin $fs/usr
75 status
77 # add Mission Control Desktop
78 printf "Installing Mission Control Desktop.."
79 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref &&
80 touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg
81 status
83 # slitaz prefs.
84 printf "Installing SliTaz prefs.."
85 cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ &&
86 # slitaz search plugins
87 cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins &&
88 status
90 # mozilla-common files
91 # dictionaries
92 printf "Installing common dictionnaries.."
93 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
94 ln -sf ../mozilla-common-$VERSION/dictionaries \
95 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
96 status
97 # plugin-container
98 printf "Installing common plugin-container"
99 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
100 ln -sf ../mozilla-common-$VERSION/plugin-container \
101 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
102 status
103 # mozilla-xremote-client
104 printf "Installing common mozilla-xremote-client"
105 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
106 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
107 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
108 status
109 # components/libdbusservice.so
110 # components/libmozgnome.so
111 for file in libdbusservice.so libmozgnome.so; do
112 printf "Installing common components/$file"
113 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
114 ln -sf ../../mozilla-common-$VERSION/components/$file \
115 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
116 status
117 done
118 # chrome.manifest
119 printf "Installing common chrome.manifest"
120 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
121 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
122 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
123 status
125 # run-mozilla.sh
126 printf "Installing common run-mozilla.sh"
127 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
128 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
129 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
130 status
132 # libmozalloc.so
133 printf "Installing common libmozalloc.so"
134 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
135 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
136 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
137 status
138 }