(* API version *)
opam-version: "1"

name: "P1"

# Test
# Toto

(* Version are arbitrary strings *)
version: "1"

maintainer: "contact@ocamlpro.com"

(* The command to run *)
build: [
  ["./build.sh"] # HAHAH
  ["this" "should" "never" "run"] {ocaml:version > "z100"}
  [make "this" ocaml:version "also"] {os = "NO"}
  ["echo" "HAHA!"] {ocaml:version = "10"}
  ["echo" make share ocaml:version]
  ["this as well" {os = "myOS"}]
]
available: os != "NO" | os != "NO" & os != "YES"

(* List of files to substitute env variables *)
substs: [ "P1.config" ]

(* Libraries *)
libraries: [ "p1" ]

(* External dependencies *)
depexts: [
  [ ["debian" "amd64"] ["foo" "bar"] ]
  [ ["osx" ]           ["foobar"]    ]
]

messages: [ "I'll always bother you displaying this message" ]

post-messages: [ "Thanks SO MUCH for installing this humble package"
                 "Everything went well" {success}
                 "Nooo, something went wrong, this makes me feel sooo sad..." {failure} ]

bug-reports: "TEST.com"

setenv: [P1 = "version1"]
depends: [
  "ocaml" {(!= "20" | != "10") & (= "20" | = "10" | = "10+a+b" | = "system")}
]
