]> git.lizzy.rs Git - micro.git/blob - snapcraft.yaml
Merge
[micro.git] / snapcraft.yaml
1 name: micro
2 version: master
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   micro:
16     source: .
17     source-type: git
18     plugin: nil
19     build-packages: [golang-go, make]
20     prepare: |
21       mkdir -p ../go/src/github.com/zyedidia/micro
22       cp -R . ../go/src/github.com/zyedidia/micro
23     build: |
24       export GOPATH=$(pwd)/../go
25       export GOBIN=$(pwd)/../go/bin
26       cd ../go/src/github.com/zyedidia/micro
27       make install
28     install: |
29       mkdir $SNAPCRAFT_PART_INSTALL/bin
30       mv ../go/bin/micro $SNAPCRAFT_PART_INSTALL/bin/