]> git.lizzy.rs Git - micro.git/blobdiff - snapcraft.yaml
better top
[micro.git] / snapcraft.yaml
index 4249b0f60433045b120b6bca454824cc30e08791..dc5a72624246f5ecb864b3bb399c28e072197f91 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
@@ -16,15 +16,10 @@ parts:
     source: .
     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: |
+    build-packages: [make]
+    build-snaps: [go]
+    build-attributes: [no-patchelf]
+    override-build: |
+      make build
       mkdir $SNAPCRAFT_PART_INSTALL/bin
-      mv ../go/bin/micro $SNAPCRAFT_PART_INSTALL/bin/
+      mv ./micro $SNAPCRAFT_PART_INSTALL/bin/