wok-6.x diff firefox/receipt @ rev 5263

Up: bison (2.4.2)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 13 23:48:27 2010 +0200 (2010-04-13)
parents 9f19aee613be
children 2c2ac9ff1c18
line diff
     1.1 --- a/firefox/receipt	Sun Feb 28 15:33:01 2010 +0100
     1.2 +++ b/firefox/receipt	Tue Apr 13 23:48:27 2010 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4  CATEGORY="network"
     1.5  SHORT_DESC="User friendly, secure and fast web browser."
     1.6  MAINTAINER="pankso@slitaz.org"
     1.7 -DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage alsa-lib xorg-libXt"
     1.8 +DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage alsa-lib xorg-libXt libfirefox"
     1.9  BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev \
    1.10  dbus-dev dbus-glib-dev alsa-lib-dev"
    1.11  TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
    1.12 @@ -35,7 +35,7 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -	mkdir -p $fs/usr/lib $fs/usr/share $fs/etc
    1.17 +	mkdir -p $fs/usr/lib/$PACKAGE-$VERSION $fs/usr/share $fs/etc 
    1.18  	cp -a $_pkg/usr/bin $fs/usr
    1.19  	cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib
    1.20  
    1.21 @@ -75,7 +75,13 @@
    1.22  	# Remove unnecessary files.
    1.23  	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries/*
    1.24  	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons
    1.25 -	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/libsqlite3.so
    1.26 +	# split firefox libs
    1.27 +	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/*.so
    1.28 +	#retain big firefox libs
    1.29 +	cp 	$_pkg/usr/lib/$PACKAGE-$VERSION/libxul.so \
    1.30 +		$_pkg/usr/lib/$PACKAGE-$VERSION/libmozjs.so \
    1.31 +		$fs/usr/lib/$PACKAGE-$VERSION
    1.32 +	
    1.33  }
    1.34  
    1.35  # Pre - Post install command to set default locale.
    1.36 @@ -87,7 +93,8 @@
    1.37  	mkdir /tmp/firefox-plugins-$$
    1.38  	cp -a $root/usr/lib/firefox-*/plugins/* /tmp/firefox-plugins-$$ 2> /dev/null
    1.39  	# Remove old libs and configs
    1.40 -	rm -rf $root/usr/lib/firefox-*
    1.41 +	rm -rf $root/usr/lib/firefox-*/plugins
    1.42 +	rm -rf $root/usr/lib/firefox-*/dictionaries
    1.43  	rm -rf $root/etc/firefox
    1.44  }
    1.45  post_install()
    1.46 @@ -105,3 +112,4 @@
    1.47  	done
    1.48  	rm -rf /tmp/firefox-plugins-$$
    1.49  }
    1.50 +