wok-6.x diff gtk+/receipt @ rev 5124

gtk+ openvas-scanner pango slitaz-base-files ttf-bitstream-vera xfree86-base-fonts xorg-base-fonts: remove spurrious SELF_INSTALL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 21 11:50:42 2010 +0100 (2010-03-21)
parents 9f19aee613be
children a0187c134f9b
line diff
     1.1 --- a/gtk+/receipt	Sun Feb 28 15:33:01 2010 +0100
     1.2 +++ b/gtk+/receipt	Sun Mar 21 11:50:42 2010 +0100
     1.3 @@ -63,16 +63,16 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9 +	local arg
    1.10  	echo "Processing post-install commands..."
    1.11 -	/usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
    1.12 -	/usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
    1.13 +	chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
    1.14 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
    1.15  	# Force reinstall of clearlooks theme (1.0 compatibilty until
    1.16  	# clearlooks are updated)
    1.17 -	if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
    1.18 -		tazpkg get-install clearlooks --forced
    1.19 -		rm -rf $root/usr/lib/gtk-2.0/2.4.0
    1.20 +	if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
    1.21 +		arg="--forced"
    1.22 +		[ -n "$1" ] && arg="--forced --root=$1/"
    1.23 +		tazpkg get-install clearlooks $arg
    1.24 +		rm -rf $1/usr/lib/gtk-2.0/2.4.0
    1.25  	fi
    1.26  }
    1.27 -SELF_INSTALL=1