# obligatory fields

name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
  Gitless is an experimental version control system built on top of Git.
  Many people complain that Git is hard to use. We think the problem lies
  deeper than the user interface, in the concepts underlying Git. Gitless
  is an experiment to see what happens if you put a simple veneer on an
  app that changes the underlying concepts. Because Gitless is implemented
  on top of Git (could be considered what Git pros call a "porcelain" of
  Git), you can always fall back on Git. And of course your coworkers you
  share a repo with need never know that you're not a Git aficionado.

base: core18

grade: devel          # 'stable' for stable/candidate upload
confinement: devmode  # 'strict' after right plugs and slots

# 'optional' fields

apps:
  gl:
    command: bin/gl

parts:
  libgit2:
    plugin: cmake
    source: https://github.com/libgit2/libgit2/archive/v0.27.0.tar.gz
    build-packages:
      - libssl-dev

  gitless-cli:
    plugin: python
    source: .
    after: [libgit2]
    # need git until https://github.com/sdg-mit/gitless/issues/176
    stage-packages:
      - git
    build-packages:
      - git
      

# obligatory fields

name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
  Gitless is an experimental version control system built on top of Git.
  Many people complain that Git is hard to use. We think the problem lies
  deeper than the user interface, in the concepts underlying Git. Gitless
  is an experiment to see what happens if you put a simple veneer on an
  app that changes the underlying concepts. Because Gitless is implemented
  on top of Git (could be considered what Git pros call a "porcelain" of
  Git), you can always fall back on Git. And of course your coworkers you
  share a repo with need never know that you're not a Git aficionado.

base: core18

grade: devel          # 'stable' for stable/candidate upload
confinement: devmode  # 'strict' after right plugs and slots

# 'optional' fields

apps:
  gl:
    command: bin/gl

parts:
  libgit2:
    plugin: cmake
    # https://www.pygit2.org/install.html#version-numbers
    source: https://github.com/libgit2/libgit2/archive/v0.26.8.tar.gz
    build-packages:
      - libssl-dev

  gitless-cli:
    plugin: python
    source: .
    after: [libgit2]
    # need git until https://github.com/sdg-mit/gitless/issues/176
    stage-packages:
      - git
    build-packages:
      - git
      

Use recommended 0.26.x version of libgit2
Use recommended 0.26.x version of libgit2

pygit2 0.26.4 needs at 0.26.x branch of libgit2

https://www.pygit2.org/install.html#version-numbers