X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=snapcraft.yaml;h=fd23a38f565944ca409f8143bded7e9f36e7cefe;hb=0f4f60c018a396e42f00f45b1279fcb06fa046e1;hp=a76da740c46b66d27774c013bffbaf93b5af773a;hpb=efe1ab5db62fe89b9bbd2096ce68492a788fc8c7;p=micro.git diff --git a/snapcraft.yaml b/snapcraft.yaml index a76da740..fd23a38f 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,19 +1,33 @@ name: micro -version: master +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: strict +confinement: classic apps: micro: command: bin/micro - plugs: [home] parts: + go: + source-tag: go1.10 micro: + after: [go] source: . - plugin: go - go-importpath: github.com/zyedidia/micro + 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/