morpheus

A Matrix client written in Go-QT
git clone git://archive.git.mtrnord.blog/Nordgedanken/morpheus.git
Log | Files | Refs | README | LICENSE

snapcraft.yaml (3452B)


      1 # After registering a name on build.snapcraft.io, commit an uncommented line:
      2 name: morpheus
      3 version: '0.1.0' # just for humans, typically '1.2+git' or '1.3.2'
      4 summary: A Matrix client written in Go-QT
      5 description: |
      6   A Matrix client written in Go-QT.
      7 grade: devel # must be 'stable' to release into candidate/stable channels
      8 confinement: devmode # use 'strict' once you have the right plugs and slots
      9 
     10 architectures:
     11   - amd64
     12   - i386
     13 
     14 apps:
     15   morpheus:
     16     command: morpheus
     17 
     18 parts:
     19   morpheus:
     20     source: https://github.com/Nordgedanken/Morpheus.git
     21     plugin: nil
     22     build-packages:
     23       - build-essential
     24       - libgl1-mesa-dev
     25       - libpulse-dev
     26       - curl
     27       - libfontconfig
     28       - xvfb
     29       - software-properties-common
     30     build: |
     31       add-apt-repository -y ppa:gophers/archive
     32       apt-get -qq update
     33       apt-get -y -qq install golang-1.9-go
     34       export PATH="$PATH:/usr/lib/go-1.9/bin/"
     35       export GOPATH="$HOME/go/"
     36       mkdir $GOPATH
     37       go get -u -d -v github.com/therecipe/qt/cmd/...
     38       export DISPLAY=:0
     39       arch
     40       if [ "$(arch)" = "x86_64" ]; then curl -L --retry 10 --retry-delay 10 -o /root/qt-unified-linux-x64-online.run https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run; else curl -L --retry 10 --retry-delay 10 -o /root/qt-unified-linux-x86-online.run https://download.qt.io/official_releases/online_installers/qt-unified-linux-x86-online.run; fi
     41       if [ "$(arch)" = "x86_64" ]; then chmod +x /root/qt-unified-linux-x64-online.run; else chmod +x /root/qt-unified-linux-x86-online.run; fi
     42       ls -la /root
     43       if [ "$(arch)" = "x86_64" ]; then ls -la /root/qt-unified-linux-x64-online.run; else ls -la /root/qt-unified-linux-x86-online.run; fi
     44       if [ "$(arch)" = "x86_64" ]; then xvfb-run "/root/qt-unified-linux-x64-online.run --script ${GOPATH}src/github.com/therecipe/qt/internal/ci/iscript.qs"; else xvfb-run "/root/qt-unified-linux-x86-online.run --script ${GOPATH}src/github.com/therecipe/qt/internal/ci/iscript.qs"; fi LINUX=true
     45       if [ "$(arch)" = "x86_64" ]; then rm -f /root/qt-unified-linux-x64-online.run; else rm -f /root/qt-unified-linux-x86-online.run; fi
     46       export PKG_CONFIG_PATH=/opt/qt58/lib/pkgconfig
     47       export QT_DOC_DIR=/opt/qt58/doc
     48       export QT_MISC_DIR=/opt/qt58
     49       export QT_DIR=/opt/Qt
     50       go install github.com/therecipe/qt/cmd/...
     51       $GOPATH/bin/qtsetup
     52       mkdir -p $GOPATH/src/github.com/Nordgedanken/Morpheus/
     53       mv ./* $GOPATH/src/github.com/Nordgedanken/Morpheus/
     54       cd $GOPATH/src/github.com/Nordgedanken/Morpheus/
     55       curl -L https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep && chmod +x $GOPATH/bin/dep
     56       dep ensure
     57       $GOPATH/bin/qtdeploy build linux
     58     install: |
     59       mv .circleci/Morpheus.sh $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh
     60       sed -i -e 's/$appname/Morpheus_bin/g' $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh
     61       ln -s $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus
     62       ln -s $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus.sh $SNAPCRAFT_PART_INSTALL/usr/bin/morpheus
     63       mv deploy/linux/Morpheus $SNAPCRAFT_PART_INSTALL/usr/bin/Morpheus_bin
     64       mv deploy/linux/lib/* $SNAPCRAFT_PART_INSTALL/usr/local/lib/
     65       mv deploy/linux/plugins/* $SNAPCRAFT_PART_INSTALL/usr/local/Morpheus/plugins/
     66       mv deploy/linux/qml/* $SNAPCRAFT_PART_INSTALL/usr/local/Morpheus/qml/