forked from zyedidia/micro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
33 lines (31 loc) · 831 Bytes
/
snapcraft.yaml
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
32
33
name: micro
version: git
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
apps:
micro:
command: bin/micro
parts:
go:
source-tag: go1.10
micro:
after: [go]
source: .
source-type: git
plugin: nil
build-packages: [make]
prepare: |
mkdir -p ../go/src/github.com/zyedidia/micro
cp -R . ../go/src/github.com/zyedidia/micro
build: |
export GOPATH=$(pwd)/../go
export GOBIN=$(pwd)/../go/bin
cd ../go/src/github.com/zyedidia/micro
make install
install: |
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv ../go/bin/micro $SNAPCRAFT_PART_INSTALL/bin/