mostly I just mark the entire libreoffice build + source folder as being excluded from AV. Yes, you can disable your internet connection after the download phase is complete, and the build will still work.