snapcraft.yaml

 1name: matcha
 2base: core22
 3adopt-info: matcha
 4summary: A beautiful and functional email client for your terminal.
 5description: |
 6  A beautiful and functional email client for your terminal, built with Go and the charming Bubble Tea TUI library.
 7  Never leave your command line to check your inbox or send an email again!
 8
 9grade: stable
10confinement: strict
11architectures:
12  - build-on: [amd64]
13    build-for: [amd64]
14  - build-on: [arm64]
15    build-for: [arm64]
16
17apps:
18  matcha:
19    command: bin/matcha
20    plugs:
21      - network
22      - home
23
24parts:
25  matcha:
26    plugin: nil
27    source: .
28    build-snaps:
29      - go/1.26/stable
30    build-packages:
31      - gcc
32      - libc6-dev
33      - libpcsclite-dev
34      - pkg-config
35    build-environment:
36      - CGO_ENABLED: "1"
37      - GOBIN: ""
38    override-pull: |
39      craftctl default
40      if [ -f .nightly ]; then
41        version="nightlyv0"
42      else
43        version="$(git describe --tags --abbrev=0 --exclude='nightlyv*' 2>/dev/null | sed 's/^v//' || echo 0.1)"
44      fi
45      craftctl set version="$version"
46    override-build: |
47      go build -o "${CRAFT_PART_INSTALL}/bin/matcha" .