if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
( cd usr/lib ; rm -rf libfm-gtk.so )
( cd usr/lib ; ln -sf libfm-gtk.so.4.0.5 libfm-gtk.so )
( cd usr/lib ; rm -rf libfm-gtk.so.4 )
( cd usr/lib ; ln -sf libfm-gtk.so.4.0.5 libfm-gtk.so.4 )
( cd usr/lib ; rm -rf libfm.so )
( cd usr/lib ; ln -sf libfm.so.4.0.5 libfm.so )
( cd usr/lib ; rm -rf libfm.so.4 )
( cd usr/lib ; ln -sf libfm.so.4.0.5 libfm.so.4 )
( cd usr/include ; rm -rf libfm )
( cd usr/include ; ln -sf libfm-1.0 libfm )
