wok-next view thunderbird/receipt @ rev 12057

cleaning up receipts that have unnecessary cp operations
author Samuel Trassare <samuel_trassare@yahoo.com>
date Wed Mar 07 21:27:37 2012 -0800 (2012-03-07)
parents cc29898c3261
children 95c157f0be92
line source
1 # SliTaz package receipt.
3 PACKAGE="thunderbird"
4 VERSION="10.0.2"
5 CATEGORY="network"
6 SHORT_DESC="Mozilla's Thunderbird email application."
7 MAINTAINER="domcox@slitaz.org"
8 DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg libevent libnotify nspr nss \
9 sqlite xorg-libX11 xorg-libXdamage xorg-libXt"
10 BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype fontconfig \
11 gtk+-dev libIDL libevent-dev libnotify-dev make mesa-dev nspr-dev \
12 nss-dev perl pkg-config python sqlite-dev tar wireless_tools-dev \
13 xorg-dev xorg-libXt-dev zip"
14 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
15 WEB_SITE="http://www.mozilla.org/"
16 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
17 TAGS="email pop imap smtp"
18 LANG="de es_ES fr en_GB pt_PT pt_BR ru"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cat <<EOF
24 WARNING: long compile time.
25 Requirements:
26 - 512MB RAM with lots of available swap space. Additional RAM will
27 significantly decrease build time.
28 - At least 2.5 GB of disk space.
29 EOF
30 # add config
31 cp -a $stuff/thunderbird.mozconfig.conf $src/.mozconfig
32 # languages
33 echo "# languages" >> $src/.mozconfig
34 echo "mk_add_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig
35 # for a quick build
36 echo "# build quicker" >> $src/.mozconfig
37 echo 'mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS"' >> $src/.mozconfig
38 # build
39 cd $src
40 patch -Np1 -i $stuff/thunderbird-3.0-lang.patch
41 patch -Np1 -i $stuff/thunderbird-install-dir.patch
42 ./configure $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib
51 # program
52 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
53 cp -a $_pkg/usr/bin $fs/usr
54 # adding mime-type (x-html)
55 cp $stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE/defaults/profile
56 }