post_install() {
  local _prefix="/mingw64"
  local _prefix_win="$(cygpath -m "${_prefix}")"
  sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/Armadillo/CMake/"*.cmake
  # Add installers local installation path
  sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/include/armadillo_bits/config.hpp"
}

post_upgrade() {
  post_install
}
