post_install() { if ! [ `grep '/usr/lib/root' etc/ld.so.conf` ]; then echo "/usr/lib/root" >> etc/ld.so.conf sbin/ldconfig -r . fi update-desktop-database >/dev/null update-mime-database /usr/share/mime >/dev/null } pre_remove() { cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot mv /tmp/.pacroot etc/ld.so.conf chmod 644 etc/ld.so.conf sbin/ldconfig -r . }