wok-current annotate thunderbird/receipt @ rev 15601
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 05 20:23:08 2013 +0000 (2013-12-05) |
parents | 3aa7a7c43fe6 |
children | c636d36601ac |
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 |
domcox@6080 | 20 # Rules to configure and make the package. |
domcox@14214 | 21 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease |
domcox@14214 | 22 # build time. |
domcox@14214 | 23 # At least 2.5 GB free disk space |
domcox@14214 | 24 |
domcox@14214 | 25 |
domcox@6080 | 26 compile_rules() |
domcox@6080 | 27 { |
domcox@6080 | 28 cd $src |
domcox@14214 | 29 # load mozconfig |
domcox@14214 | 30 cp -a $stuff/mozconfig $src |
domcox@14214 | 31 |
domcox@14214 | 32 # fix path of 'check_debug_ranges.py' |
domcox@14214 | 33 ln -s $src/mozilla/build/autoconf/check_debug_ranges.py \ |
domcox@14214 | 34 $src/build/autoconf/check_debug_ranges.py |
domcox@14214 | 35 |
domcox@14214 | 36 # build and create a thunderbird tarball |
domcox@14214 | 37 # reducing log size: hide c++, nsinstall, python msgs |
domcox@14214 | 38 # Exception... Component returned failure code: known bug #696763 |
domcox@14214 | 39 make -f client.mk | egrep -v "c++|nsinstall|python" && |
domcox@14214 | 40 make -C obj-thunderbird/mail/installer |
domcox@14214 | 41 |
domcox@14214 | 42 # install |
domcox@14214 | 43 # locate tarball |
domcox@14214 | 44 local tarball tarpath fn1 fn2 |
domcox@14214 | 45 tarpath=$src/obj-thunderbird/mozilla/dist |
domcox@14214 | 46 fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2" |
domcox@14214 | 47 fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2" |
domcox@14214 | 48 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found" |
domcox@14214 | 49 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found" |
domcox@14214 | 50 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1 |
domcox@14214 | 51 # extract tarball |
domcox@14214 | 52 mkdir -p $install/usr/lib/thunderbird-$VERSION && |
domcox@14214 | 53 tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \ |
domcox@14214 | 54 --strip-components=1 && |
domcox@14214 | 55 # install symlink in /usr/bin |
domcox@14214 | 56 mkdir -p $install/usr/bin && |
domcox@14214 | 57 ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin |
domcox@6080 | 58 } |
domcox@6080 | 59 |
domcox@6080 | 60 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@6080 | 61 genpkg_rules() |
domcox@6080 | 62 { |
domcox@6080 | 63 # program |
domcox@14214 | 64 printf "Installing program.." |
domcox@14214 | 65 mkdir -p $fs/usr/lib && |
domcox@14214 | 66 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib && |
pascal@13796 | 67 cp -a $install/usr/bin $fs/usr |
domcox@14214 | 68 status |
domcox@12352 | 69 |
domcox@14214 | 70 # add Mission Control Desktop |
domcox@14214 | 71 printf "Installing Mission Control Desktop.." |
domcox@14214 | 72 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref && |
domcox@14214 | 73 touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg |
domcox@14214 | 74 status |
domcox@14214 | 75 |
domcox@14214 | 76 # slitaz prefs. |
domcox@14214 | 77 printf "Installing SliTaz prefs.." |
domcox@14214 | 78 cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ && |
domcox@14214 | 79 # slitaz search plugins |
domcox@14214 | 80 cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins && |
domcox@14214 | 81 status |
domcox@14214 | 82 |
domcox@14214 | 83 # mozilla-common files |
domcox@14214 | 84 # dictionaries |
domcox@14214 | 85 printf "Installing common dictionnaries.." |
domcox@14214 | 86 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries && |
domcox@14214 | 87 ln -sf ../mozilla-common-$VERSION/dictionaries \ |
domcox@14214 | 88 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries |
domcox@14214 | 89 status |
domcox@14214 | 90 # plugin-container |
domcox@14214 | 91 printf "Installing common plugin-container" |
domcox@14214 | 92 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container && |
domcox@14214 | 93 ln -sf ../mozilla-common-$VERSION/plugin-container \ |
domcox@14214 | 94 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container |
domcox@14214 | 95 status |
domcox@14214 | 96 # mozilla-xremote-client |
domcox@14214 | 97 printf "Installing common mozilla-xremote-client" |
domcox@14214 | 98 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client && |
domcox@14214 | 99 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \ |
domcox@14214 | 100 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client |
domcox@14214 | 101 status |
domcox@14214 | 102 # components/libdbusservice.so |
domcox@14214 | 103 # components/libmozgnome.so |
domcox@14214 | 104 for file in libdbusservice.so libmozgnome.so; do |
domcox@14214 | 105 printf "Installing common components/$file" |
domcox@14214 | 106 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file && |
domcox@14214 | 107 ln -sf ../../mozilla-common-$VERSION/components/$file \ |
domcox@14214 | 108 $fs/usr/lib/$PACKAGE-$VERSION/components/$file |
domcox@14214 | 109 status |
domcox@14214 | 110 done |
domcox@14214 | 111 # chrome.manifest |
domcox@14214 | 112 printf "Installing common chrome.manifest" |
domcox@14214 | 113 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest && |
domcox@14214 | 114 ln -sf ../mozilla-common-$VERSION/chrome.manifest \ |
domcox@14214 | 115 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest |
domcox@14214 | 116 status |
domcox@14214 | 117 |
domcox@14214 | 118 # run-mozilla.sh |
domcox@14214 | 119 printf "Installing common run-mozilla.sh" |
domcox@14214 | 120 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh && |
domcox@14214 | 121 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \ |
domcox@14214 | 122 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh |
domcox@14214 | 123 status |
domcox@14214 | 124 |
domcox@14214 | 125 # libmozalloc.so |
domcox@14214 | 126 printf "Installing common libmozalloc.so" |
domcox@14214 | 127 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so && |
domcox@14214 | 128 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \ |
domcox@14214 | 129 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so |
domcox@14214 | 130 status |
domcox@6080 | 131 } |