{
  "patterns": ["\\blibgit2\\b"],
  "dependencies": [
    {
      "packages": ["libgit2-dev"],
      "pre_install": [
        { "command": "apt-get install -y software-properties-common" },
        { "command": "add-apt-repository -y ppa:cran/libgit2" },
        { "command": "apt-get update" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu",
          "versions": ["16.04", "18.04"]
        }
      ]
    },
    {
      "packages": ["libgit2-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu",
          "versions": ["20.04", "22.04", "24.04"]
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "pre_install": [
        {
          "command": "yum install -y epel-release"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["6"]
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "pre_install": [
        {
          "command": "rpm -q epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm"
        }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["6"]
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["7"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["7"]
        }
      ]
    },
    {
      "pre_install": [
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled powertools" }
      ],
      "packages": ["libgit2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "pre_install": [
        { "command": "dnf install -y epel-release" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux",
          "versions": ["9"]
        }
      ]
    },
    {
      "pre_install": [
        {
          "command": "subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms"
        }
      ],
      "packages": ["libgit2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8"]
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "pre_install": [
        { "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["libgit2-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse"
        },
        {
          "os": "linux",
          "distribution": "sle",
          "versions": ["15.0", "15.2", "15.3", "15.4", "15.5", "15.6"]
        }
      ]
    },
    {
      "packages": ["libgit2-24"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "sle",
          "versions": ["12.3"]
        }
      ]
    },
    {
      "packages": ["libgit2-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "alpine"
        }
      ]
    }
  ]
}
