wok-4.x diff thunderbird/receipt @ rev 11820

Up: thunderbird to 10.0.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 25 14:16:39 2012 -0500 (2012-02-25)
parents 8e4c74abdf74
children cc29898c3261
line diff
     1.1 --- a/thunderbird/receipt	Mon Jan 02 23:06:19 2012 +0100
     1.2 +++ b/thunderbird/receipt	Sat Feb 25 14:16:39 2012 -0500
     1.3 @@ -1,12 +1,16 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="thunderbird"
     1.7 -VERSION="3.1.10"
     1.8 +VERSION="10.0.2"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Mozilla's Thunderbird email application."
    1.11  MAINTAINER="domcox@slitaz.org"
    1.12 -DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg nss sqlite xorg-libX11 xorg-libXdamage xorg-libXt"
    1.13 -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.14 +DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg nss sqlite xorg-libX11 xorg-libXdamage \
    1.15 +xorg-libXt libnotify libevent libvpx"
    1.16 +BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype-dev fontconfig-dev \
    1.17 +gtk+-dev libIDL libnotify-dev libvpx-dev nss-dev perl python-dev sqlite-dev \
    1.18 +tar wireless_tools-dev libevent-dev xorg-dev xorg-libXt-dev zip \
    1.19 +wireless_tools-dev yasm mesa-dev"
    1.20  TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
    1.21  WEB_SITE="http://www.mozillamessaging.com/"
    1.22  WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
    1.23 @@ -22,48 +26,35 @@
    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" ; return 1)
    1.33 -	status
    1.34  	# add config
    1.35 -    cp -a stuff/thunderbird.mozconfig.conf $src/.mozconfig
    1.36 +	cp -a $stuff/thunderbird.mozconfig.conf $src/.mozconfig
    1.37  	# languages
    1.38  	echo "# languages" >> $src/.mozconfig
    1.39 -	echo "mk_ad_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig
    1.40 +	echo "mk_add_options MOZ_CO_LOCALES=\"$LANG\"" >> $src/.mozconfig
    1.41  	# for a quick build
    1.42  	echo "# build quicker" >> $src/.mozconfig
    1.43  	echo 'mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS"' >> $src/.mozconfig
    1.44  	# build
    1.45  	cd $src
    1.46 +	patch -Np1 -i $stuff/thunderbird-3.0-lang.patch
    1.47 +	patch -Np1 -i $stuff/thunderbird-install-dir.patch
    1.48  	./configure $CONFIGURE_ARGS &&
    1.49  	make &&
    1.50 -	make DESTDIR=$PWD/_pkg install
    1.51 +	make DESTDIR=$DESTDIR install
    1.52  }
    1.53  
    1.54  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.55  genpkg_rules()
    1.56  {
    1.57 -	mkdir -p $fs/usr
    1.58 +	mkdir -p $fs/usr/lib
    1.59  	# program
    1.60 -	cp -a $_pkg/usr/lib $fs/usr
    1.61 +	cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
    1.62  	cp -a $_pkg/usr/bin $fs/usr
    1.63  	# adding mime-type (x-html)
    1.64 -	cp stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
    1.65 +	cp $stuff/mimeTypes.rdf $fs/usr/lib/$PACKAGE/defaults/profile
    1.66  	# icons and desktop file
    1.67  	mkdir -p $fs/usr/share/applications
    1.68 -	cp -a stuff/thunderbird.desktop $fs/usr/share/applications
    1.69 +	cp -a $stuff/thunderbird.desktop $fs/usr/share/applications
    1.70  	mkdir -p $fs/usr/share/pixmaps
    1.71 -	cp -a stuff/thunderbird-icon.png $fs/usr/share/pixmaps
    1.72 +	cp -a $stuff/thunderbird-icon.png $fs/usr/share/pixmaps
    1.73  }
    1.74 -
    1.75 -clean_wok()
    1.76 -{
    1.77 -	rm -rf $WOK/$PACKAGE-*/taz
    1.78 -	rm -rf $WOK/$PACKAGE-*/process.log
    1.79 -}
    1.80 -
    1.81 -