opam-version: "2.0"
maintainer: "sheets@alum.mit.edu"
tags: ["org:mirage"]
build: [
  [make] {os != "freebsd"}
  ["env" "IS_FREEBSD=true" make] {os = "freebsd"}
]
remove: [["ocamlfind" "remove" "sodium"]]
depends: [
  "ocaml" {>= "4.01.0"}
  "base-bigarray"
  "base-bytes"
  "ocamlfind"
  "ctypes" {>= "0.3.2" & < "0.4.0"}
  "ocamlbuild" {build}
  "conf-libsodium"
]
dev-repo: "git://github.com/dsheets/ocaml-sodium"
install: [make "PREFIX=%{prefix}%" "install"]
synopsis: "Binding to libsodium UNAUDITED"
description: """
Binding to libsodium 0.6.1+, a shared library wrapper for djb's NaCl.

Binding uses ctypes' stub generation system. GNU/Linux, FreeBSD, and OS
X are supported.

UNAUDITED"""
flags: light-uninstall
url {
  src: "https://github.com/dsheets/ocaml-sodium/archive/0.3.0.tar.gz"
  checksum: "md5=7dafca32822d88e229648cec369bcc7e"
}
