wok diff thunderbird/receipt @ rev 6080

Add: Thunderbird (3.1.2) Mozilla mail
author Dominique Corbex <domcox@slitaz.org>
date Sun Aug 29 11:04:31 2010 +0200 (2010-08-29)
parents
children 87c39df98536
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/thunderbird/receipt	Sun Aug 29 11:04:31 2010 +0200
     1.3 @@ -0,0 +1,60 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="thunderbird"
     1.7 +VERSION="3.1.2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Mozilla's Thunderbird email application."
    1.10 +MAINTAINER="domcox@slitaz.org"
    1.11 +DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg nss sqlite xorg-libX11 xorg-libXdamage xorg-libXt"
    1.12 +BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype fontconfig gtk+-dev libIDL libnotify-dev make nss-dev perl pkg-config python sqlite-dev tar wireless_tools-dev xorg-dev xorg-libXt-dev zip"
    1.13 +TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
    1.14 +WEB_SITE="www.mozillamessaging.com"
    1.15 +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
    1.16 +LANG="de es fr en_GB pt_PT pt_BR ru"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	# WARNING:  long compile time.
    1.22 +	# Requirements: 
    1.23 +	# - 512MB RAM with lots of available swap space. Additional RAM will 
    1.24 +	#   significantly decrease build time. 
    1.25 +	# - At least 2.5 GB of disk space.
    1.26 +
    1.27 +    # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables
    1.28 +    # and to have a nice clean.
    1.29 +	cd $WOK/$PACKAGE
    1.30 +	echo -n "Checking source"
    1.31 +    [ -d comm-* ] && mv comm-* $PACKAGE-$VERSION 2>/dev/null
    1.32 +	[ -d $PACKAGE-$VERSION ] || (echo "src not found, exiting" ; exit 1)
    1.33 +	status
    1.34 +	# add config
    1.35 +    cp -a stuff/thunderbird.mozconfig.conf $src/.mozconfig
    1.36 +	# languages
    1.37 +	echo "# languages" >> $src/.mozconfig
    1.38 +	echo "mk_ad_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig
    1.39 +	# for a quick build
    1.40 +	echo "# build quicker" >> $src/.mozconfig
    1.41 +	echo 'mk_add_options MOZ_MAKE_FLAGS="-j4"' >> $src/.mozconfig
    1.42 +	# build
    1.43 +	cd $src
    1.44 +	./configure $CONFIGURE_ARGS &&
    1.45 +	make &&
    1.46 +	make DESTDIR=$PWD/_pkg install
    1.47 +}
    1.48 +
    1.49 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.50 +genpkg_rules()
    1.51 +{
    1.52 +	mkdir -p $fs/usr
    1.53 +	# program
    1.54 +	cp -a $_pkg/usr/lib $fs/usr
    1.55 +	cp -a $_pkg/usr/bin $fs/usr
    1.56 +	# adding mime-type (x-html)
    1.57 +	cp stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
    1.58 +	# icons and desktop file
    1.59 +	mkdir -p $fs/usr/share/applications
    1.60 +	cp -a stuff/thunderbird.desktop $fs/usr/share/applications
    1.61 +	mkdir -p $fs/usr/share/pixmaps
    1.62 +	cp -a stuff/thunderbird-icon.png $fs/usr/share/pixmaps
    1.63 +}