commit 7e5ec9a5371b0ce530757eab5272f75912d21daf parent 0c421097b5223f6068515933737a3955bb2381b3 Author: Marcel <MTRNord@users.noreply.github.com> Date: Mon, 29 Jan 2018 19:08:27 +0100 Create snapcraft.yaml Diffstat:
| A | snap/snapcraft.yaml | | | 39 | +++++++++++++++++++++++++++++++++++++++ |
1 file changed, 39 insertions(+), 0 deletions(-)
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml @@ -0,0 +1,39 @@ +# After registering a name on build.snapcraft.io, commit an uncommented line: +# name: your-registered-name +version: '0.1.0' # just for humans, typically '1.2+git' or '1.3.2' +summary: A Matrix client written in Go-QT +description: | + A Matrix client written in Go-QT. +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: devmode # use 'strict' once you have the right plugs and slots + +apps: + morpheus: + command: morpheus + + +parts: + qmake_morpheus: + source: https://github.com/Nordgedanken/Morpheus.git + plugin: nil + build-packages: + - golang-go + - qt5-qmake + - qtbase5-dev + - build-essential + - libgl1-mesa-dev + - libpulse-dev + after: [desktop-qt5] + build: | + go get -u -v github.com/therecipe/qt/cmd/... + QT_PKG_CONFIG=true $GOPATH/bin/qtsetup + $GOPATH/bin/qtdeploy build linux + install: | + mv .circleci/Morpheus.sh $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh + sed -i -e 's/$appname/Morpheus_bin/g' $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh + ln -s $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus + ln -s $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh $SNAPCRAFT_PART_INSTALL/usr/bin/morpheus + mv deploy/linux/Morpheus $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus_bin + mv deploy/linux/lib/* $SNAPCRAFT_PART_INSTALL/usr/local/lib/ + mv deploy/linux/plugins/* $SNAPCRAFT_PART_INSTALL/usr/local/Morpheus/plugins/ + mv deploy/linux/qml/* $SNAPCRAFT_PART_INSTALL/usr/local/Morpheus/qml/