]> git.lizzy.rs Git - micro.git/blobdiff - snapcraft.yaml
Don't throw error if job callback doesn't exist
[micro.git] / snapcraft.yaml
index 8bc163de12ea910752a737c23b29066d70675fc2..11304d475b0f721e3372b077536cd7e7f5e5ebc3 100644 (file)
@@ -1,5 +1,5 @@
 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
@@ -14,5 +14,17 @@ apps:
 parts:
   micro:
     source: .
-    plugin: go
-    go-importpath: github.com/zyedidia/micro
+    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/