install the snap with make (#747)

* install the snap with make

* set the source-type to git, remove get

* remove extra space
This commit is contained in:
Leo Arias 2017-07-26 16:35:16 -06:00 committed by Zachary Yedidia
parent 5c462f5600
commit fad95c028a

View File

@ -14,6 +14,17 @@ apps:
parts:
micro:
source: .
plugin: go
go-importpath: github.com/zyedidia/micro
go-packages: [github.com/zyedidia/micro/cmd/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/