wok-next diff freetype-infinality/receipt @ rev 18564
Up tazpkg-test(855)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 09 04:55:34 2015 +0200 (2015-11-09) |
parents | 7bb096863642 |
children | 9e01bc6321ea |
line diff
1.1 --- a/freetype-infinality/receipt Sat Sep 14 17:06:00 2013 +0000 1.2 +++ b/freetype-infinality/receipt Mon Nov 09 04:55:34 2015 +0200 1.3 @@ -50,21 +50,21 @@ 1.4 post_install() 1.5 { 1.6 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file 1.7 - cat >> /etc/profile << EOT 1.8 + cat >> $1/etc/profile << EOT 1.9 1.10 # freetype-infinality profile settings 1.11 . /etc/profile.d/infinality-settings.sh 1.12 EOT 1.13 1.14 # add patched libs to loader config 1.15 - echo '/usr/lib/freetype-infinality' >> /etc/ld.so.conf 1.16 - ldconfig 1.17 + echo '/usr/lib/freetype-infinality' >> $1/etc/ld.so.conf 1.18 + chroot "$1/" ldconfig 1.19 echo 'Now you can log out/in to take effect on all your apps' 1.20 } 1.21 1.22 post_remove() 1.23 { 1.24 - sed -i '/infinality/d' /etc/profile 1.25 - sed -i '/freetype-infinality/d' /etc/ld.so.conf 1.26 - ldconfig 1.27 + sed -i '/infinality/d' $1/etc/profile 1.28 + sed -i '/freetype-infinality/d' $1/etc/ld.so.conf 1.29 + chroot "$1/" ldconfig 1.30 }