{
  "build": [
    [
      "bash",
      "-c",
      "#{os == 'windows' ? 'patch -p1 < winpatch.patch' : 'true'}"
    ],
    [
      "make",
      "-f",
      "configure.make",
      "all",
      "OCAMLBUILD_PREFIX=#{self.install}",
      "OCAMLBUILD_BINDIR=#{self.bin}",
      "OCAMLBUILD_LIBDIR=#{self.lib}",
      "OCAMLBUILD_MANDIR=#{self.man}",
      "OCAMLBUILD_NATIVE=true",
      "OCAMLBUILD_NATIVE_TOOLS=true",
      "EXE=#{os == 'windows' ? '.exe': ''}"
    ],
    [
      "make",
      "check-if-preinstalled",
      "all",
      "EXE=#{os == 'windows' ? '.exe': ''}",
      "opam-install"
    ]
  ]
}
