def METHOD_NAME(self, build_dir: Path) -> None:
    """Writes the meson build file at specified location"""
    meson_template = MesonTemplate(
        self.modulename,
        self.sources,
        self.dependencies,
        self.extra_objects,
        self.flib_flags,
        self.fc_flags,
        self.build_type,
    )
    src = meson_template.generate_meson_build()
    Path(build_dir).mkdir(parents=True, exist_ok=True)
    meson_build_file = Path(build_dir) / "meson.build"
    meson_build_file.write_text(src)
    return meson_build_file