doinst() {
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
}
doinst
( cd usr/share/icons/hicolor/32x32/mimetypes ; rm -rf application-x-google-gadget.png )
( cd usr/share/icons/hicolor/32x32/mimetypes ; ln -sf /usr/share/icons/hicolor/32x32/apps/google-gadgets.png application-x-google-gadget.png )
( cd usr/share/icons/hicolor/128x128/mimetypes ; rm -rf application-x-google-gadget.png )
( cd usr/share/icons/hicolor/128x128/mimetypes ; ln -sf /usr/share/icons/hicolor/128x128/apps/google-gadgets.png application-x-google-gadget.png )
( cd usr/share/icons/hicolor/64x64/mimetypes ; rm -rf application-x-google-gadget.png )
( cd usr/share/icons/hicolor/64x64/mimetypes ; ln -sf /usr/share/icons/hicolor/64x64/apps/google-gadgets.png application-x-google-gadget.png )
( cd usr/share/icons/hicolor/48x48/mimetypes ; rm -rf application-x-google-gadget.png )
( cd usr/share/icons/hicolor/48x48/mimetypes ; ln -sf /usr/share/icons/hicolor/48x48/apps/google-gadgets.png application-x-google-gadget.png )
( cd usr/share/icons/hicolor/scalable/apps ; rm -rf google-gadgets.png )
( cd usr/share/icons/hicolor/scalable/apps ; ln -sf /usr/share/icons/hicolor/128x128/apps/google-gadgets.png google-gadgets.png )
( cd usr/share/icons/hicolor/192x192/mimetypes ; rm -rf application-x-google-gadget.png )
( cd usr/share/icons/hicolor/192x192/mimetypes ; ln -sf /usr/share/icons/hicolor/192x192/apps/google-gadgets.png application-x-google-gadget.png )
( cd usr/lib ; rm -rf libggadget-gtk-1.0.so )
( cd usr/lib ; ln -sf libggadget-gtk-1.0.so.0.0.0 libggadget-gtk-1.0.so )
( cd usr/lib ; rm -rf libggadget-webkitjs-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-webkitjs-1.0.so.0.0.0 libggadget-webkitjs-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-1.0.so.0.0.0 libggadget-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-qt-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-qt-1.0.so.0.0.0 libggadget-qt-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-xdg-1.0.so )
( cd usr/lib ; ln -sf libggadget-xdg-1.0.so.0.0.0 libggadget-xdg-1.0.so )
( cd usr/lib ; rm -rf libggadget-npapi-1.0.so )
( cd usr/lib ; ln -sf libggadget-npapi-1.0.so.0.0.0 libggadget-npapi-1.0.so )
( cd usr/lib ; rm -rf libggadget-qt-1.0.so )
( cd usr/lib ; ln -sf libggadget-qt-1.0.so.0.0.0 libggadget-qt-1.0.so )
( cd usr/lib ; rm -rf libggadget-1.0.so )
( cd usr/lib ; ln -sf libggadget-1.0.so.0.0.0 libggadget-1.0.so )
( cd usr/lib ; rm -rf libggadget-js-1.0.so )
( cd usr/lib ; ln -sf libggadget-js-1.0.so.0.0.0 libggadget-js-1.0.so )
( cd usr/lib ; rm -rf libggadget-dbus-1.0.so )
( cd usr/lib ; ln -sf libggadget-dbus-1.0.so.0.0.0 libggadget-dbus-1.0.so )
( cd usr/lib ; rm -rf libggadget-js-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-js-1.0.so.0.0.0 libggadget-js-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-dbus-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-dbus-1.0.so.0.0.0 libggadget-dbus-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-webkitjs-1.0.so )
( cd usr/lib ; ln -sf libggadget-webkitjs-1.0.so.0.0.0 libggadget-webkitjs-1.0.so )
( cd usr/lib ; rm -rf libggadget-gtk-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-gtk-1.0.so.0.0.0 libggadget-gtk-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-npapi-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-npapi-1.0.so.0.0.0 libggadget-npapi-1.0.so.0 )
( cd usr/lib ; rm -rf libggadget-xdg-1.0.so.0 )
( cd usr/lib ; ln -sf libggadget-xdg-1.0.so.0.0.0 libggadget-xdg-1.0.so.0 )
