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