wok-current diff gtk+/receipt @ rev 5224
Add fbreader
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Wed Apr 07 12:54:31 2010 +0000 (2010-04-07) |
parents | 9f19aee613be |
children | a0187c134f9b |
line diff
1.1 --- a/gtk+/receipt Sun Feb 28 15:33:01 2010 +0100 1.2 +++ b/gtk+/receipt Wed Apr 07 12:54:31 2010 +0000 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