2016-09-01 07:13:00 +03:00
|
|
|
name: micro
|
2017-10-03 14:50:47 +03:00
|
|
|
version: git
|
2016-09-01 07:13:00 +03:00
|
|
|
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.
|
2017-04-28 13:04:08 +03:00
|
|
|
confinement: classic
|
2016-09-01 07:13:00 +03:00
|
|
|
|
|
|
|
apps:
|
|
|
|
micro:
|
|
|
|
command: bin/micro
|
|
|
|
|
|
|
|
parts:
|
|
|
|
micro:
|
|
|
|
source: .
|
2017-07-27 01:35:16 +03:00
|
|
|
source-type: git
|
|
|
|
plugin: nil
|
|
|
|
build-packages: [golang-go, 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/
|