opam-version: "2.0"
maintainer:   "thomas@gazagnaire.org"
authors:      "Thomas Gazagnaire"
license:      "ISC"
homepage:     "https://github.com/mirage/ocaml-mstruct"
dev-repo: "git+https://github.com/mirage/ocaml-mstruct.git"
bug-reports:  "https://github.com/mirage/ocaml-mstruct/issues"

build: [
  ["./configure" "--prefix" prefix]
  [make]
]
install: [make "install"]
remove: ["ocamlfind" "remove" "mstruct"]
depends: [
  "ocaml" {< "4.06.0"}
  "cstruct" {>= "1.4.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
patches: [
  "build_with_trunk.patch"
]
synopsis: "Mstruct is a thin mutable layer on top of cstruct"
description: """
```ocaml
# #require "mstruct";;
# let b = Mstruct.create 9;;
val b : Mstruct.t = <abstr>
# Mstruct.set_string b "hello";;
- : unit = ()
# Mstruct.set_uint32 b 32l;;
- : unit = ()
```"""
flags: light-uninstall
extra-files: [
  "build_with_trunk.patch" "md5=40f914c3ec3d78c91696135fa2ab759d"
]
url {
  src: "https://github.com/mirage/ocaml-mstruct/archive/1.3.2.tar.gz"
  checksum: "md5=52cfd548d17b414a8a02a308e0331869"
}
