wok-6.x annotate thunderbird/receipt @ rev 14064
shaarli: fix path + security fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 20 11:36:45 2013 +0100 (2013-02-20) |
parents | fbc8a4625f8a |
children | cd72738a73b8 |
rev | line source |
---|---|
domcox@6080 | 1 # SliTaz package receipt. |
domcox@6080 | 2 |
domcox@6080 | 3 PACKAGE="thunderbird" |
domcox@12352 | 4 VERSION="11.0.1" |
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" |
pascal@13796 | 11 TAGS="email pop imap smtp" |
pascal@13796 | 12 TB_LOCALES="de es_ES fr en_GB pt_PT pt_BR ru" |
pascal@13796 | 13 |
domcox@12154 | 14 DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg libevent libnotify nss \ |
domcox@11863 | 15 sqlite xorg-libX11 xorg-libXdamage xorg-libXt" |
domcox@11863 | 16 BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype fontconfig \ |
domcox@11863 | 17 gtk+-dev libIDL libevent-dev libnotify-dev make mesa-dev nspr-dev \ |
domcox@11863 | 18 nss-dev perl pkg-config python sqlite-dev tar wireless_tools-dev \ |
domcox@11863 | 19 xorg-dev xorg-libXt-dev zip" |
domcox@6080 | 20 |
domcox@6080 | 21 # Rules to configure and make the package. |
domcox@6080 | 22 compile_rules() |
domcox@6080 | 23 { |
domcox@11863 | 24 cat <<EOF |
domcox@12352 | 25 WARNING: long compile time. |
domcox@11863 | 26 Requirements: |
domcox@11863 | 27 - 512MB RAM with lots of available swap space. Additional RAM will |
domcox@11863 | 28 significantly decrease build time. |
domcox@11863 | 29 - At least 2.5 GB of disk space. |
domcox@11863 | 30 EOF |
domcox@6080 | 31 # add config |
domcox@11863 | 32 cp -a $stuff/thunderbird.mozconfig.conf $src/.mozconfig |
domcox@6080 | 33 # languages |
domcox@12352 | 34 echo -e "\n# languages" >> $src/.mozconfig |
domcox@12352 | 35 echo "mk_add_options MOZ_CO_LOCALES=\"$TB_LOCALES\"" >> $src/.mozconfig |
domcox@6080 | 36 # for a quick build |
domcox@12352 | 37 echo -e "\n# build quicker" >> $src/.mozconfig |
domcox@12352 | 38 echo "mk_add_options MOZ_MAKE_FLAGS=$MAKEFLAGS" >> $src/.mozconfig |
domcox@6080 | 39 # build |
domcox@6080 | 40 cd $src |
slaxemulator@11820 | 41 patch -Np1 -i $stuff/thunderbird-3.0-lang.patch |
slaxemulator@11820 | 42 patch -Np1 -i $stuff/thunderbird-install-dir.patch |
domcox@6080 | 43 ./configure $CONFIGURE_ARGS && |
pascal@13836 | 44 make 2>&1 | head -n 1000 && |
slaxemulator@11820 | 45 make DESTDIR=$DESTDIR install |
domcox@6080 | 46 } |
domcox@6080 | 47 |
domcox@6080 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@6080 | 49 genpkg_rules() |
domcox@6080 | 50 { |
slaxemulator@11820 | 51 mkdir -p $fs/usr/lib |
domcox@6080 | 52 # program |
pascal@13796 | 53 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
pascal@13796 | 54 cp -a $install/usr/bin $fs/usr |
domcox@12352 | 55 # mcd |
domcox@12352 | 56 cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE/defaults/pref |
domcox@12352 | 57 cp $stuff/thunderbird.cfg $fs/usr/lib/$PACKAGE |
domcox@12352 | 58 # mimetypes |
domcox@12352 | 59 |
domcox@6080 | 60 } |