wok rev 922

Up: firefox (3.0)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jun 17 15:38:23 2008 +0200 (2008-06-17)
parents 005eaf005c74
children 9e944a5790ce
files firefox/receipt firefox/stuff/prefs.js
line diff
     1.1 --- a/firefox/receipt	Tue Jun 17 13:08:09 2008 +0200
     1.2 +++ b/firefox/receipt	Tue Jun 17 15:38:23 2008 +0200
     1.3 @@ -1,15 +1,15 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="firefox"
     1.7 -VERSION="3.0-rc3"
     1.8 +VERSION="3.0"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="User friendly, secure and fast web browser."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  DEPENDS="gtk+ sqlite"
    1.13  BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev"
    1.14 -TARBALL="$PACKAGE-3.0rc3-source.tar.bz2"
    1.15 +TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
    1.16  WEB_SITE="http://www.mozilla.org/"
    1.17 -WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.0rc3/source/$TARBALL"
    1.18 +WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL"
    1.19  
    1.20  # Rules to configure and make the package.
    1.21  #
    1.22 @@ -34,39 +34,38 @@
    1.23  {
    1.24  	mkdir -p $fs/usr/lib $fs/usr/share $fs/etc
    1.25  	cp -a $_pkg/usr/bin $fs/usr
    1.26 -	cp -a $_pkg/usr/lib/$PACKAGE-3.0 $fs/usr/lib
    1.27 +	cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib
    1.28  
    1.29  	# SliTaz Web site for the home page, bookmarks file and branding.
    1.30 -	cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-3.0
    1.31 +	cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
    1.32  	cp -a stuff/bookmarks.html $fs/usr/lib/$PACKAGE-3.0/defaults/profile
    1.33  	cp -a stuff/firefox-branding.js \
    1.34 -		$fs/usr/lib/$PACKAGE-3.0/defaults/pref/
    1.35 +		$fs/usr/lib/$PACKAGE-$VERSION/defaults/pref/
    1.36  
    1.37  	# User preference.
    1.38 -	cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-3.0/defaults/profile
    1.39 +	cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
    1.40  	cp -a stuff/userChrome.css \
    1.41 -		$fs/usr/lib/$PACKAGE-3.0/defaults/profile/chrome
    1.42 +		$fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
    1.43  
    1.44  	# Move default config to /etc/firefox (/usr maybe read-only)
    1.45 -	mv -f $fs/usr/lib/$PACKAGE-3.0/defaults $fs/etc/$PACKAGE
    1.46 -	ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-3.0/defaults
    1.47 +	mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
    1.48 +	ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
    1.49  	# EULA is accepted by SliTaz project.
    1.50  	sed -i s:'pref("browser.EULA.3.accepted", false);':'pref("browser.EULA.3.accepted", true);': \
    1.51  		$fs/etc/firefox/pref/firefox.js
    1.52  
    1.53  	# Locale fr
    1.54  	tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \
    1.55 -	-C $fs/usr/lib/$PACKAGE-3.0/extensions
    1.56 +	-C $fs/usr/lib/$PACKAGE-$VERSION/extensions
    1.57  
    1.58  	# Search Plugin (by: oddball)
    1.59  	cp -a stuff/searchplugins $fs/usr/lib/firefox-3.0/
    1.60  	chown -R root.root $fs
    1.61  
    1.62  	# Remove unnecessary files.
    1.63 -	#rm -f $fs/usr/lib/$PACKAGE-3.0/TestGtkEmbed
    1.64 -	rm -rf $fs/usr/lib/$PACKAGE-3.0/dictionaries/*
    1.65 -	rm -rf $fs/usr/lib/$PACKAGE-3.0/icons
    1.66 -	rm -rf $fs/usr/lib/$PACKAGE-3.0/libsqlite3.so
    1.67 +	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries/*
    1.68 +	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons
    1.69 +	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/libsqlite3.so
    1.70  }
    1.71  
    1.72  # Pre - Post install command to set default locale.
     2.1 --- a/firefox/stuff/prefs.js	Tue Jun 17 13:08:09 2008 +0200
     2.2 +++ b/firefox/stuff/prefs.js	Tue Jun 17 15:38:23 2008 +0200
     2.3 @@ -9,5 +9,5 @@
     2.4   * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
     2.5   */
     2.6  
     2.7 -user_pref("general.useragent.extra.firefox", "Firefox/3.0rc3 (SliTaz GNU/Linux)");
     2.8 +user_pref("general.useragent.extra.firefox", "Firefox/3.0 (SliTaz GNU/Linux)");
     2.9  user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1, UTF-8");