]> git.lizzy.rs Git - micro.git/blob - snapcraft.yaml
Merge pull request #1085 from jtolds/themes
[micro.git] / snapcraft.yaml
1 name: micro
2 version: git
3 summary: A modern and intuitive terminal-based text editor
4 description: |
5   Micro is a terminal-based text editor that aims to be easy to use and
6   intuitive, while also taking advantage of the full capabilities of modern
7   terminals.
8 confinement: classic
9
10 apps:
11   micro:
12     command: bin/micro
13
14 parts:
15   go:
16     source-tag: go1.10
17   micro:
18     after: [go]
19     source: .
20     source-type: git
21     plugin: nil
22     build-packages: [make]
23     prepare: |
24       mkdir -p ../go/src/github.com/zyedidia/micro
25       cp -R . ../go/src/github.com/zyedidia/micro
26     build: |
27       export GOPATH=$(pwd)/../go
28       export GOBIN=$(pwd)/../go/bin
29       cd ../go/src/github.com/zyedidia/micro
30       make install
31     install: |
32       mkdir $SNAPCRAFT_PART_INSTALL/bin
33       mv ../go/bin/micro $SNAPCRAFT_PART_INSTALL/bin/