opam-version: "2.0"
maintainer: "Christophe Troestler <Christophe.Troestler@umons.ac.be>"
authors: [ "Christophe Troestler"
           "Noémie Meunier"
           "Pierre Hauweele" ]
license: "LGPL-3.0-only with OCaml-LGPL-linking-exception"
homepage: "https://github.com/Chris00/ocaml-gammu"
dev-repo: "git+https://github.com/Chris00/ocaml-gammu.git"
bug-reports: "https://github.com/Chris00/ocaml-gammu/issues"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocamlfind" "remove" "gammu"]
]
depends: [
  "ocaml"
  "ocamlfind"
  "ocamlbuild" {build}
  "conf-pkg-config" {build}
]
depopts: [
  "base-unix"
]
depexts: [
  ["libgammu-dev"] {os-family = "debian"}
  ["epel-release" "gammu-devel"] {os-distribution = "centos"}
  ["gammu-devel"] {os-distribution = "fedora"}
  ["lib64gammu-devel"] {os-distribution = "mageia"}
  ["gammu-devel"] {os-family = "suse"}
  ["gammu-dev"] {os-distribution = "alpine"}
  ["gammu"] {os = "macos" & os-distribution = "homebrew"}
]
synopsis: "Cell phone and SIM card access."
description: """
Gammu is a binding to libGammu which allows to manage data in your
cell phone such as contacts, calendar or messages."""
flags: light-uninstall
url {
  src:
    "https://github.com/Chris00/ocaml-gammu/releases/download/0.9.3/gammu-0.9.3.tar.gz"
  checksum: "md5=c75282188ec8a0a8f4fe3b2c1a30410a"
}
