opam-version: "2.0"
homepage: "https://github.com/LaurentMazare/ocaml-wasmtime"
maintainer: "lmazare@gmail.com"
bug-reports: "https://github.com/LaurentMazare/ocaml-wasmtime/issues"
authors: [
  "Laurent Mazare"
]
install: [
  [
    "sh"
    "-c"
    "test -d %{lib}%/libwasmtime/lib/libwasmtime.a || ( mkdir -p %{lib}%/libwasmtime && tar xf wasmtime-macos.tar.xz && mv -f wasmtime-*macos*/* %{lib}%/libwasmtime )"
  ]
]
synopsis: "The libwasmtime library package"
description: """
This is used by the wasmtime package to trigger the install of the
libwasmtime library."""
extra-source "wasmtime-macos.tar.xz" {
  src: "https://github.com/bytecodealliance/wasmtime/releases/download/v0.21.0/wasmtime-v0.21.0-x86_64-macos-c-api.tar.xz"
  checksum: "md5=8f4354d8f5c187a5daacd6867124d0b8"
}
available: arch = "x86_64" & os = "macos"
