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.03.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
  "topkg" {build}
  "cstruct" {>= "1.9.0"}
  "sexplib" {< "v0.15"}
  "nocrypto" {>= "0.5.3"}
  "astring"
  "rresult"
]
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.5/otr-0.3.5.tbz"
  checksum: "md5=df4f8c0ec797a231f15add3f4b945edf"
}
