opam-version: "2.0"
maintainer: "ygrek@autistici.org"
homepage: "https://github.com/ygrek/ocaml-zstd"
license: "BSD-3-Clause"
authors: [ "ygrek" ]
#doc: ["http://ocurl.forge.ocamlcore.org/api/index.html"]
dev-repo: "git://github.com/ygrek/ocaml-zstd.git"
bug-reports: "https://github.com/ygrek/ocaml-zstd/issues"
build: [
  ["ocaml" "setup.ml" "-configure" "--disable-tests" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-configure" "--enable-tests" "--prefix" prefix]
    {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [
  ["ocaml" "setup.ml" "-install"]
]
remove: [
  ["ocamlfind" "remove" "zstd"]
]
depends: [
  "ocaml"
  "ocamlfind" {build}
  "oasis" {build}
  "ocamlbuild" {build}
  "ctypes" {< "0.18.0"}
  ("extlib" {with-test} | "extlib-compat" {with-test})
  "base-unix" {with-test}
  "conf-zstd"
]
synopsis: "Bindings to zstd compression library"
description: """
Zstd, short for Zstandard, is a fast lossless compression algorithm,
targeting real-time compression scenarios at zlib-level compression ratio.
See http://zstd.net/ for more info."""
flags: light-uninstall
url {
  src: "https://ygrek.org/p/release/ocaml-zstd/ocaml-zstd-0.2.tar.gz"
  mirrors: "https://github.com/ygrek/ocaml-zstd/releases/download/v0.2/ocaml-zstd-0.2.tar.gz"
  checksum: "md5=6edef3e3fc8de3e608c9c57f171de7a6"
}
