if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/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/share/qcad/plugins/designer ; rm -rf libqwebview.so )
( cd usr/share/qcad/plugins/designer ; ln -sf /usr/lib64/qt/plugins/designer/libqwebview.so libqwebview.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqsvg.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqsvg.so libqsvg.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqjpeg.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqjpeg.so libqjpeg.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqgif.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqgif.so libqgif.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqtiff.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqtiff.so libqtiff.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqtga.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqtga.so libqtga.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqico.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqico.so libqico.so )
( cd usr/share/qcad/plugins/imageformats ; rm -rf libqmng.so )
( cd usr/share/qcad/plugins/imageformats ; ln -sf /usr/lib64/qt/plugins/imageformats/libqmng.so libqmng.so )
( cd usr/share/qcad/plugins/sqldrivers ; rm -rf libqsqlite.so )
( cd usr/share/qcad/plugins/sqldrivers ; ln -sf /usr/lib64/qt/plugins/sqldrivers/libqsqlite.so libqsqlite.so )
( cd usr/share/qcad/plugins/sqldrivers ; rm -rf libqsqlodbc.so )
( cd usr/share/qcad/plugins/sqldrivers ; ln -sf /usr/lib64/qt/plugins/sqldrivers/libqsqlodbc.so libqsqlodbc.so )
( cd usr/share/qcad/plugins/sqldrivers ; rm -rf libqsqlite3.so )
( cd usr/share/qcad/plugins/sqldrivers ; ln -sf /usr/lib64/qt/plugins/sqldrivers/libqsqlite3.so libqsqlite3.so )
( cd usr/share/qcad/plugins/sqldrivers ; rm -rf libqsqlmysql.so )
( cd usr/share/qcad/plugins/sqldrivers ; ln -sf /usr/lib64/qt/plugins/sqldrivers/libqsqlmysql.so libqsqlmysql.so )
( cd usr/share/qcad/plugins/codecs ; rm -rf libqtwcodecs.so )
( cd usr/share/qcad/plugins/codecs ; ln -sf /usr/lib64/qt/plugins/codecs/libqtwcodecs.so libqtwcodecs.so )
( cd usr/share/qcad/plugins/codecs ; rm -rf libqkrcodecs.so )
( cd usr/share/qcad/plugins/codecs ; ln -sf /usr/lib64/qt/plugins/codecs/libqkrcodecs.so libqkrcodecs.so )
( cd usr/share/qcad/plugins/codecs ; rm -rf libqjpcodecs.so )
( cd usr/share/qcad/plugins/codecs ; ln -sf /usr/lib64/qt/plugins/codecs/libqjpcodecs.so libqjpcodecs.so )
( cd usr/share/qcad/plugins/codecs ; rm -rf libqcncodecs.so )
( cd usr/share/qcad/plugins/codecs ; ln -sf /usr/lib64/qt/plugins/codecs/libqcncodecs.so libqcncodecs.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_gui.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_gui.so.1.0.0 libqtscript_gui.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_network.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_network.so.1.0.0 libqtscript_network.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_sql.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_sql.so.1.0.0 libqtscript_sql.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_xml.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_xml.so.1.0.0 libqtscript_xml.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_network.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_network.so.1.0.0 libqtscript_network.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_svg.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_svg.so.1.0.0 libqtscript_svg.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_webkit.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_webkit.so.1.0.0 libqtscript_webkit.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_core.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_core.so.1.0.0 libqtscript_core.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_xmlpatterns.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_xmlpatterns.so.1.0.0 libqtscript_xmlpatterns.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_webkit.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_webkit.so.1.0.0 libqtscript_webkit.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_gui.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_gui.so.1.0.0 libqtscript_gui.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_xmlpatterns.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_xmlpatterns.so.1.0.0 libqtscript_xmlpatterns.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_uitools.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_uitools.so.1.0.0 libqtscript_uitools.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_svg.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_svg.so.1.0.0 libqtscript_svg.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_network.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_network.so.1.0.0 libqtscript_network.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_core.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_core.so.1.0.0 libqtscript_core.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_xml.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_xml.so.1.0.0 libqtscript_xml.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_xmlpatterns.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_xmlpatterns.so.1.0.0 libqtscript_xmlpatterns.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_uitools.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_uitools.so.1.0.0 libqtscript_uitools.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_core.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_core.so.1.0.0 libqtscript_core.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_xml.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_xml.so.1.0.0 libqtscript_xml.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_gui.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_gui.so.1.0.0 libqtscript_gui.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_sql.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_sql.so.1.0.0 libqtscript_sql.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_uitools.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_uitools.so.1.0.0 libqtscript_uitools.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_opengl.so )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_opengl.so.1.0.0 libqtscript_opengl.so )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_opengl.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_opengl.so.1.0.0 libqtscript_opengl.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_sql.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_sql.so.1.0.0 libqtscript_sql.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_opengl.so.1 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_opengl.so.1.0.0 libqtscript_opengl.so.1 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_webkit.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_webkit.so.1.0.0 libqtscript_webkit.so.1.0 )
( cd usr/share/qcad/plugins/script ; rm -rf libqtscript_svg.so.1.0 )
( cd usr/share/qcad/plugins/script ; ln -sf libqtscript_svg.so.1.0.0 libqtscript_svg.so.1.0 )
