File: snapcraft.yaml

package info (click to toggle)
micro 2.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,472 kB
  • sloc: sh: 227; makefile: 67; xml: 52
file content (31 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: micro
summary: A modern and intuitive terminal-based text editor
description: |
  Micro is a terminal-based text editor that aims to be easy to use and
  intuitive, while also taking advantage of the full capabilities of modern
  terminals.
confinement: classic
adopt-info: micro
base: core20

apps:
  micro:
    command: bin/micro

parts:
  micro:
    source: .
    source-type: git
    plugin: go
    build-packages: [make]
    build-attributes: [no-patchelf]
    override-pull: |
      snapcraftctl pull
      version="$(go run $SNAPCRAFT_PART_SRC/tools/build-version.go)"
      [ -n "$(echo $version | grep "dev")" ] && grade=devel || grade=stable
      snapcraftctl set-version "$version"
      snapcraftctl set-grade "$grade"
    override-build: |
      make build-tags
      mkdir $SNAPCRAFT_PART_INSTALL/bin
      mv ./micro $SNAPCRAFT_PART_INSTALL/bin/