MINGW_INSTALL=mingw64

post_install() {
  if [ -f "${MINGW_INSTALL}/lib/vlc/vlc-cache-gen.exe" ]; then
    PATH="./${MINGW_INSTALL}/bin:$PATH" ./${MINGW_INSTALL}/lib/vlc/vlc-cache-gen.exe ./${MINGW_INSTALL}/lib/vlc/plugins
  fi
}

post_upgrade() {
  post_install
}
