MINGW_INSTALL=mingw64

post_install() {
  if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then
    usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml
    ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog
  fi
}

post_upgrade() {
  post_install
}
