Debian Codegraph @

snapcraft.yaml

raw
1 name: micro
2 summary: A modern and intuitive terminal-based text editor
3 description: |
4 Micro is a terminal-based text editor that aims to be easy to use and
5 intuitive, while also taking advantage of the full capabilities of modern
6 terminals.
7 confinement: classic
8 adopt-info: micro
9 base: core20
10
11 apps:
12 micro:
13 command: bin/micro
14
15 parts:
16 micro:
17 source: .
18 source-type: git
19 plugin: go
20 build-packages: [make]
21 build-attributes: [no-patchelf]
22 override-pull: |
23 snapcraftctl pull
24 version="$(go run $SNAPCRAFT_PART_SRC/tools/build-version.go)"
25 [ -n "$(echo $version | grep "dev")" ] && grade=devel || grade=stable
26 snapcraftctl set-version "$version"
27 snapcraftctl set-grade "$grade"
28 override-build: |
29 make build-tags
30 mkdir $SNAPCRAFT_PART_INSTALL/bin
31 mv ./micro $SNAPCRAFT_PART_INSTALL/bin/