opam-version: "2.0"
homepage:     "https://github.com/hannesm/ocaml-otr"
dev-repo: "git+https://github.com/hannesm/ocaml-otr.git"
bug-reports:  "https://github.com/hannesm/ocaml-otr/issues"
doc:          "https://hannesm.github.io/ocaml-otr/doc"
authors:      ["Hannes Mehnert <hannes@mehnert.org>"]
maintainer:   ["Hannes Mehnert <hannes@mehnert.org>"]
license:      "BSD-2-Clause"

build: [
  ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"]
  ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "true"]
    {with-test}
  ["ocaml" "pkg/pkg.ml" "test"] {with-test}
]
depends: [
  "ocaml" {>= "4.02.2"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
  "topkg" {build}
  "ppx_deriving"
  "ppx_sexp_conv" {< "v0.11.0"}
  "ppx_cstruct"
  "cstruct" {>= "1.9.0" & < "3.4.0"}
  "sexplib" {< "v0.15"}
  "result"
  "nocrypto" {>= "0.5.3"}
  "astring"
]
conflicts: [
  "sexplib" {= "v0.9.0"}
]
synopsis: "Off the record implementation purely in OCaml"
description: """
This is an implementation of version 2 and 3 of the Off-the-record
protocol (https://otr.cypherpunks.ca/Protocol-v3-4.0.0.html) in OCaml.

Including the socialist millionairs protocol to authenticate a
communication partner over an encrypted channel providing a shared
secret."""
url {
  src:
    "https://github.com/hannesm/ocaml-otr/releases/download/0.3.3/otr-0.3.3.tbz"
  checksum: "md5=3b48d802759d2a9e1cce1440ad044eec"
}
