]> git.lizzy.rs Git - micro.git/blob - snapcraft.yaml
Add autoretab
[micro.git] / snapcraft.yaml
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
10 apps:
11   micro:
12     command: bin/micro
13
14 parts:
15   micro:
16     source: .
17     source-type: git
18     plugin: nil
19     build-packages: [make]
20     build-snaps: [go]
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/