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

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi

( cd usr/lib ; rm -rf libgutils.so.2 )
( cd usr/lib ; ln -sf libgutils.so.2.0.0 libgutils.so.2 )
( cd usr/lib ; rm -rf libfontforge.so )
( cd usr/lib ; ln -sf libfontforge.so.2.0.0 libfontforge.so )
( cd usr/lib ; rm -rf libgioftp.so.2 )
( cd usr/lib ; ln -sf libgioftp.so.2.0.0 libgioftp.so.2 )
( cd usr/lib ; rm -rf libgioftp.so )
( cd usr/lib ; ln -sf libgioftp.so.2.0.0 libgioftp.so )
( cd usr/lib ; rm -rf libfontforgeexe.so )
( cd usr/lib ; ln -sf libfontforgeexe.so.2.0.0 libfontforgeexe.so )
( cd usr/lib ; rm -rf libgunicode.so.4 )
( cd usr/lib ; ln -sf libgunicode.so.4.0.0 libgunicode.so.4 )
( cd usr/lib ; rm -rf libgutils.so )
( cd usr/lib ; ln -sf libgutils.so.2.0.0 libgutils.so )
( cd usr/lib ; rm -rf libfontforgeexe.so.2 )
( cd usr/lib ; ln -sf libfontforgeexe.so.2.0.0 libfontforgeexe.so.2 )
( cd usr/lib ; rm -rf libgunicode.so )
( cd usr/lib ; ln -sf libgunicode.so.4.0.0 libgunicode.so )
( cd usr/lib ; rm -rf libfontforge.so.2 )
( cd usr/lib ; ln -sf libfontforge.so.2.0.0 libfontforge.so.2 )
( cd usr/lib ; rm -rf libgdraw.so.5 )
( cd usr/lib ; ln -sf libgdraw.so.5.0.0 libgdraw.so.5 )
( cd usr/lib ; rm -rf libgdraw.so )
( cd usr/lib ; ln -sf libgdraw.so.5.0.0 libgdraw.so )
