wok rev 5038

split firefox; add libfirefox
author Rohit Joshi <jozee@slitaz.org>
date Wed Mar 03 15:11:46 2010 +0000 (2010-03-03)
parents e4c44c62d5f2
children 304f0ecf5cd1
files firefox/receipt libfirefox/receipt
line diff
     1.1 --- a/firefox/receipt	Wed Mar 03 18:19:19 2010 +0100
     1.2 +++ b/firefox/receipt	Wed Mar 03 15:11:46 2010 +0000
     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 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libfirefox/receipt	Wed Mar 03 15:11:46 2010 +0000
     2.3 @@ -0,0 +1,35 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libfirefox"
     2.7 +VERSION="3.5.7"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="firefox lib files"
    2.10 +MAINTAINER="jozee@slitaz.org"
    2.11 +DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage alsa-lib xorg-libXt"
    2.12 +WANTED="firefox"
    2.13 +WEB_SITE="http://www.mozilla.org/"
    2.14 +
    2.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.16 +genpkg_rules()
    2.17 +{
    2.18 +	
    2.19 +	mkdir -p $fs/usr/lib/$WANTED-$VERSION
    2.20 +	cp -a $_pkg/usr/lib/$WANTED-$VERSION/*.so $fs/usr/lib/$WANTED-$VERSION
    2.21 +	
    2.22 +	# remove some firefox libs (in firefox receipts)
    2.23 +	rm -rf $fs/usr/lib/firefox-$VERSION/libxul.so
    2.24 +	rm -rf $fs/usr/lib/firefox-$VERSION/libmozjs.so
    2.25 +	
    2.26 +	# Remove unnecessary files (copied from firefox receipt)
    2.27 +	rm -rf $fs/usr/lib/firefox-$VERSION/libsqlite3.so
    2.28 +	
    2.29 +
    2.30 +}
    2.31 +
    2.32 +post_install()
    2.33 +{
    2.34 +# Export firefox libraries
    2.35 +	for i in /usr/lib/firefox*/*.so ; do
    2.36 +		[ -f $i ] && ln -sf $i /usr/lib
    2.37 +	done	
    2.38 +}