opam-version: "2.0"
maintainer: "opam-devel@lists.ocaml.org"
authors: [
  "Vincent Bernardoff <vb@luminar.eu.org>"
  "Raja Boujbel <raja.boujbel@ocamlpro.com>"
  "Roberto Di Cosmo <roberto@dicosmo.org>"
  "Thomas Gazagnaire <thomas@gazagnaire.org>"
  "Louis Gesbert <louis.gesbert@ocamlpro.com>"
  "Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr>"
  "Anil Madhavapeddy <anil@recoil.org>"
  "Guillem Rieu <guillem.rieu@ocamlpro.com>"
  "Ralf Treinen <ralf.treinen@pps.jussieu.fr>"
  "Frederic Tuong <tuong@users.gforge.inria.fr>"
]
homepage: "https://opam.ocaml.org"
bug-reports: "https://github.com/ocaml/opam/issues"
depends: [
  "ocaml" {>= "4.02.3"}
  "opam-client" {= "2.0.5"}
  "cmdliner" {>= "0.9.8"}
  "dune" {>= "1.2.1"}
]
build: [
  ["./configure" "--disable-checks" "--prefix" prefix]
  [make "%{name}%.install"]
  ["env" "--unset=OPAM_SWITCH_PREFIX" "--unset=OPAMEXTERNALSOLVER" make "tests"] {with-test}
]
post-messages:
  """
The development version of opam has been successfully compiled into %{lib}%/%{name}%. You should not run it from there, please install the binaries to your PATH, e.g. with
    sudo cp %{lib}%/%{name}%/* /usr/local/bin

If you just want to give it a try without altering your current installation, you could use instead:
    alias opam2="OPAMROOT=~/.opam2 %{lib}%/%{name}%/opam\""""
    {success}
dev-repo: "git+https://github.com/ocaml/opam.git"
url {
  src: "https://github.com/ocaml/opam/archive/2.0.5.tar.gz"
  checksum: [
    "md5=836fd716befec093cc6457bc34c98a43"
    "sha512=427003d57ab02f87e4b778e0ecb566247dc38e27267825b612401b9938c48d7e844519752468226f240a3e1a249dbbf9e3beee803565a72272ec8bcf40cdfda1"
  ]
}
description:"""
opam 2.0.5 development version

This package compiles (bootstraps) opam 2.0.5. For consistency and safety of the
installation, the binaries are not installed into the PATH, but into
lib/opam-devel, from where the user can manually install them system-wide.
"""
