wok-next diff libQtGui/receipt @ rev 17127
libQtGui: if no exists write ~/.config/Trolltech.conf
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Sep 09 00:43:00 2014 +0200 (2014-09-09) |
parents | 839c7f57db5c |
children | 17c84cd0c81a |
line diff
1.1 --- a/libQtGui/receipt Tue Sep 09 00:00:27 2014 +0200 1.2 +++ b/libQtGui/receipt Tue Sep 09 00:43:00 2014 +0200 1.3 @@ -20,7 +20,18 @@ 1.4 cp -a $install/usr/lib/libQtGui.so* $fs/usr/lib 1.5 1.6 mkdir -p $fs/usr/lib/qt/plugins/imageformats 1.7 - cp -a $install/usr/lib/qt/plugins/imageformats/libqjpeg.so $fs/usr/lib/qt/plugins/imageformats/libqjpeg.so 1.8 - cp -a $install/usr/lib/qt/plugins/imageformats/libqgif.so $fs/usr/lib/qt/plugins/imageformats/libqgif.so 1.9 + cp -a $install/usr/lib/qt/plugins/imageformats/libqjpeg.so $fs/usr/lib/qt/plugins/imageformats 1.10 + cp -a $install/usr/lib/qt/plugins/imageformats/libqgif.so $fs/usr/lib/qt/plugins/imageformats 1.11 + 1.12 + mkdir -p $fs/etc/skel/.config 1.13 + cp -a $stuff/Trolltech.conf $fs/etc/skel/.config 1.14 } 1.15 1.16 +post_install() 1.17 +{ 1.18 + for i in $(ls $1/home 2> /dev/null); do 1.19 + [ -f /home/$i/.config/Trolltech.conf ] && continue 1.20 + cp $1/etc/skel/.config/Trolltech.conf $1/home/$i/.config 1.21 + chroot $1/ chown -R $i.users /home/$i/.config 1.22 + done 1.23 +}