wok annotate thunderbird/receipt @ rev 24322
updated aqualung again (1.0 -> 1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 26 10:29:43 2022 +0100 (2022-01-26) |
parents | 1ed1fa7d10cd |
children | b56b38cfd475 |
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" |
domcox@6080 | 6 SHORT_DESC="Mozilla's Thunderbird email application." |
domcox@6080 | 7 MAINTAINER="domcox@slitaz.org" |
pascal@15601 | 8 LICENSE="MPL" |
pascal@13796 | 9 TARBALL="$PACKAGE-$VERSION.source.tar.bz2" |
pascal@13796 | 10 WEB_SITE="http://www.mozilla.org/" |
pascal@13796 | 11 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL" |
domcox@14214 | 12 |
domcox@14214 | 13 DEPENDS="alsa-lib gtk+ zip unzip libevent libvpx nspr nss sqlite \ |
domcox@14214 | 14 dbus dbus-glib glib libnotify libfirefox" |
domcox@14214 | 15 BUILD_DEPENDS="alsa-lib-dev gtk+-dev bzip2 zip unzip coreutils \ |
domcox@14214 | 16 libevent-dev libvpx-dev nspr-dev nss-dev yasm sqlite-dev \ |
domcox@14214 | 17 dbus-dev dbus-glib-dev libnotify-dev freetype fontconfig tar gzip mesa-dev" |
pascal@13796 | 18 TAGS="email pop imap smtp" |
domcox@6080 | 19 |
pascal@24304 | 20 # What is the latest version available today? |
pascal@24304 | 21 current_version() |
pascal@24304 | 22 { |
pascal@24304 | 23 wget -O - https://ftp.mozilla.org/pub/thunderbird/releases/ 2>/dev/null | \ |
pascal@24304 | 24 sed '/[0-9]*\.[0-9]*\.[0-9]*esr/!d;s|.*">||;s|/.*||' | sort -Vr | sed q |
pascal@24304 | 25 } |
pascal@24304 | 26 |
domcox@6080 | 27 # Rules to configure and make the package. |
domcox@14214 | 28 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease |
domcox@14214 | 29 # build time. |
domcox@14214 | 30 # At least 2.5 GB free disk space |
domcox@14214 | 31 |
domcox@14214 | 32 |
domcox@6080 | 33 compile_rules() |
domcox@6080 | 34 { |
domcox@6080 | 35 cd $src |
domcox@14214 | 36 # load mozconfig |
domcox@14214 | 37 cp -a $stuff/mozconfig $src |
domcox@14214 | 38 |
domcox@14214 | 39 # fix path of 'check_debug_ranges.py' |
domcox@14214 | 40 ln -s $src/mozilla/build/autoconf/check_debug_ranges.py \ |
domcox@14214 | 41 $src/build/autoconf/check_debug_ranges.py |
domcox@14214 | 42 |
domcox@14214 | 43 # build and create a thunderbird tarball |
domcox@14214 | 44 # reducing log size: hide c++, nsinstall, python msgs |
domcox@14214 | 45 # Exception... Component returned failure code: known bug #696763 |
domcox@14214 | 46 make -f client.mk | egrep -v "c++|nsinstall|python" && |
domcox@14214 | 47 make -C obj-thunderbird/mail/installer |
domcox@14214 | 48 |
domcox@14214 | 49 # install |
domcox@14214 | 50 # locate tarball |
domcox@14214 | 51 local tarball tarpath fn1 fn2 |
domcox@14214 | 52 tarpath=$src/obj-thunderbird/mozilla/dist |
domcox@14214 | 53 fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2" |
pascal@20254 | 54 fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-i686.tar.bz2" |
domcox@14214 | 55 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found" |
pascal@20255 | 56 [ -e "$fn2" ] && tarball="$fn2" && echo "i686 tarball found" |
domcox@14214 | 57 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1 |
domcox@14214 | 58 # extract tarball |
domcox@14214 | 59 mkdir -p $install/usr/lib/thunderbird-$VERSION && |
domcox@14214 | 60 tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \ |
domcox@14214 | 61 --strip-components=1 && |
domcox@14214 | 62 # install symlink in /usr/bin |
domcox@14214 | 63 mkdir -p $install/usr/bin && |
domcox@14214 | 64 ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin |
domcox@6080 | 65 } |
domcox@6080 | 66 |
domcox@6080 | 67 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@6080 | 68 genpkg_rules() |
domcox@6080 | 69 { |
domcox@6080 | 70 # program |
domcox@14214 | 71 printf "Installing program.." |
domcox@14214 | 72 mkdir -p $fs/usr/lib && |
domcox@14214 | 73 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib && |
pascal@13796 | 74 cp -a $install/usr/bin $fs/usr |
domcox@14214 | 75 status |
domcox@12352 | 76 |
domcox@14214 | 77 # add Mission Control Desktop |
domcox@14214 | 78 printf "Installing Mission Control Desktop.." |
domcox@14214 | 79 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref && |
domcox@14214 | 80 touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg |
domcox@14214 | 81 status |
domcox@14214 | 82 |
domcox@14214 | 83 # slitaz prefs. |
domcox@14214 | 84 printf "Installing SliTaz prefs.." |
domcox@14214 | 85 cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ && |
domcox@14214 | 86 # slitaz search plugins |
domcox@14214 | 87 cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins && |
domcox@14214 | 88 status |
domcox@14214 | 89 |
domcox@14214 | 90 # mozilla-common files |
domcox@14214 | 91 # dictionaries |
domcox@14214 | 92 printf "Installing common dictionnaries.." |
domcox@14214 | 93 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries && |
domcox@14214 | 94 ln -sf ../mozilla-common-$VERSION/dictionaries \ |
domcox@14214 | 95 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries |
domcox@14214 | 96 status |
domcox@14214 | 97 # plugin-container |
domcox@14214 | 98 printf "Installing common plugin-container" |
domcox@14214 | 99 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container && |
domcox@14214 | 100 ln -sf ../mozilla-common-$VERSION/plugin-container \ |
domcox@14214 | 101 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container |
domcox@14214 | 102 status |
domcox@14214 | 103 # mozilla-xremote-client |
domcox@14214 | 104 printf "Installing common mozilla-xremote-client" |
domcox@14214 | 105 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client && |
domcox@14214 | 106 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \ |
domcox@14214 | 107 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client |
domcox@14214 | 108 status |
domcox@14214 | 109 # components/libdbusservice.so |
domcox@14214 | 110 # components/libmozgnome.so |
domcox@14214 | 111 for file in libdbusservice.so libmozgnome.so; do |
domcox@14214 | 112 printf "Installing common components/$file" |
domcox@14214 | 113 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file && |
domcox@14214 | 114 ln -sf ../../mozilla-common-$VERSION/components/$file \ |
domcox@14214 | 115 $fs/usr/lib/$PACKAGE-$VERSION/components/$file |
domcox@14214 | 116 status |
domcox@14214 | 117 done |
domcox@14214 | 118 # chrome.manifest |
domcox@14214 | 119 printf "Installing common chrome.manifest" |
domcox@14214 | 120 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest && |
domcox@14214 | 121 ln -sf ../mozilla-common-$VERSION/chrome.manifest \ |
domcox@14214 | 122 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest |
domcox@14214 | 123 status |
domcox@14214 | 124 |
domcox@14214 | 125 # run-mozilla.sh |
domcox@14214 | 126 printf "Installing common run-mozilla.sh" |
domcox@14214 | 127 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh && |
domcox@14214 | 128 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \ |
domcox@14214 | 129 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh |
domcox@14214 | 130 status |
domcox@14214 | 131 |
domcox@14214 | 132 # libmozalloc.so |
domcox@14214 | 133 printf "Installing common libmozalloc.so" |
domcox@14214 | 134 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so && |
domcox@14214 | 135 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \ |
domcox@14214 | 136 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so |
domcox@14214 | 137 status |
domcox@6080 | 138 } |