opam-version: "2.0"
maintainer:   "simon.beaumont@citrix.com"
authors:      "Si Beaumont"
homepage:     "https://github.com/simonjbeaumont/ocaml-pci"
bug-reports:  "https://github.com/simonjbeaumont/ocaml-pci/issues"
dev-repo: "git+https://github.com/simonjbeaumont/ocaml-pci.git"
build: [
  ["./configure"]
  [make]
  ["./configure" "--enable-tests"] {with-test}
  [make "test"] {with-test}
]
install: [make "install"]
remove: [
  ["ocamlfind" "remove" "pci"]
  ["ocamlfind" "remove" "pci_bindings"]
]
depends: [
  "ocaml" {>= "4.01.0" & < "4.06.0"}
  "ctypes" {>= "0.4"}
  "ocamlfind" {build}
  "ounit" {with-test}
  "ocamlbuild" {build}
]
available: os = "linux"
depexts: [
  ["hwdata" "libpci-dev"] {os-family = "debian"}
  ["hwdata" "pciutils-devel"] {os-distribution = "centos"}
]
post-messages: [
  "This package requires libpci-dev (>= 3.2.0) to be installed on your system"     {failure & (os = "debian")}
  "This package requires libpci-dev (>= 3.2.0) to be installed on your system"     {failure & (os = "ubuntu")}
  "This package requires pciutils-devel (>= 3.2.0) to be installed on your system" {failure & (os = "centos")}
]
synopsis: "Ctypes bindings to libpci for OCaml"
flags: light-uninstall
url {
  src: "https://github.com/simonjbeaumont/ocaml-pci/archive/v1.0.0.tar.gz"
  checksum: "md5=b3b73c70bbde4fe5b4474b624398a224"
}
