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