]> git.lizzy.rs Git - micro.git/blobdiff - snapcraft.yaml
Merge
[micro.git] / snapcraft.yaml
index a76da740c46b66d27774c013bffbaf93b5af773a..4249b0f60433045b120b6bca454824cc30e08791 100644 (file)
@@ -5,15 +5,26 @@ 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:
   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/