post_install()
{
  xdg-mime install /usr/share/anki-ccbc/anki.xml --novendor
  xdg-mime default /usr/share/applications/anki-ccbc.desktop application/x-anki
  xdg-mime default /usr/share/applications/anki-ccbc.desktop application/x-apkg
}

pre_remove()
{
  xdg-mime uninstall /usr/share/mime/packages/anki.xml
}
