post_install() {
  if [ -f "mingw64/qt5-static/bin/qmake.exe" ]; then
    cd mingw64/qt5-static/bin
      ../../bin/qtbinpatcher --verbose --nobackup --force --old-dir=@@QT_REAL_PREFIX/dir@@
    cd -
  fi
}

post_upgrade() {
  post_install
}
