diff options
Diffstat (limited to 'snap/snapcraft.yaml')
| -rw-r--r-- | snap/snapcraft.yaml | 127 |
1 files changed, 53 insertions, 74 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 671ccd4..3aa2a33 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,104 +1,83 @@ name: barrier-kvm # the Barrier Snappy for Linux / not tested on MAC yet base: core18 -version: '2.2.0' # 03/2019 -summary: Eliminate the barrier between your machines. -description: | - Barrier is KVM software forked from Symless's synergy 1.9 codebase. - Synergy was a commercialized reimplementation of the original - CosmoSynergy written by Chris Schoeneman. +version: master +version-script: git describe --tags --long | sed "s/^v//" +adopt-info: appstream-flathub grade: stable # must be 'stable' to release into candidate/stable channels confinement: strict # use 'strict' once you have the right plugs and slots +icon: res/barrier.svg +license: GPL-2.0 apps: - barrier-kvm: + barrier: command: desktop-launch barrier #first run might take longer - plugs: - gnome-3-26-1604: - interface: content - target: gnome-platform - default-provider: gnome-3-26-1604:gnome-3-26-1604 - plugs: [gnome-3-26-1604] - plugs: [x11] -parts: [qt5conf] + desktop: usr/share/applications/barrier.desktop + common-id: com.github.debauchee.barrier + plugs: &plugs + - desktop + - desktop-legacy + - home + - joystick + - network + - opengl + - pulseaudio + - screen-inhibit-control + - unity7 + - wayland + - x11 + barrierc: + command: desktop-launch barrierc + plugs: *plugs + barriers: + command: desktop-launch barriers + plugs: *plugs + parts: - desktop: - plugin: nil - source: https://github.com/ubuntu/snapcraft-desktop-helpers.git desktop-qt5: source: https://github.com/ubuntu/snapcraft-desktop-helpers.git source-subdir: qt plugin: make - make-parameters: ["FLAVOR=qt5"] - build-packages: - - build-essential - - qtbase5-dev - - dpkg-dev - stage-packages: - - libxkbcommon0 - - ttf-ubuntu-font-family - - dmz-cursor-theme - - light-themes - - adwaita-icon-theme - - gnome-themes-standard - - shared-mime-info - - libqt5gui5 - - libgdk-pixbuf2.0-0 - - libqt5svg5 # for loading icon themes which are svg - - try: [appmenu-qt5] # not available on core18 - - locales-all - - xdg-user-dirs - - fcitx-frontend-qt5 - qt5: - source: https://github.com/ubuntu/snapcraft-desktop-helpers.git - source-subdir: qt - plugin: make - make-parameters: ["FLAVOR=qt5"] - build-packages: - - qtbase5-dev - - dpkg-dev - stage-packages: - - libxkbcommon0 - - ttf-ubuntu-font-family - - dmz-cursor-theme - - light-themes - - adwaita-icon-theme - - gnome-themes-standard - - shared-mime-info - - libqt5gui5 - - libgdk-pixbuf2.0-0 - - libqt5svg5 # for loading icon themes which are svg - - try: [appmenu-qt5] # not available on core18 - - locales-all - barrier-kvm: - source: https://github.com/payomagic/barrier.git + + barrier: + source: . plugin: cmake + configflags: + - "-DCMAKE_INSTALL_PREFIX=/usr" build-packages: - - g++ - - gcc - - make - xorg-dev - libcurl4-openssl-dev - libavahi-compat-libdnssd-dev - libssl-dev - libx11-dev - - libqt4-dev - qtbase5-dev - qt5-style-plugins - - qt5ct - stage-packages: - libxinerama-dev - - libxinerama1 - libxrandr-dev - - libxrandr2 - libxrender-dev - - libxrender1 - libxtst-dev - qtdeclarative5-dev - - libavahi-compat-libdnssd-dev - - libqt5gui5 - libavahi-common-dev + - libqt5svg5-dev + stage-packages: + - libxinerama1 + - libxrandr2 + - libxrender1 + - libqt5gui5 - libqt5x11extras5 - libqt5svg5 - - libqt5svg5-dev - - qt5ct + - libxtst6 + - libavahi-client3 + - libavahi-common3 + - libavahi-compat-libdnssd1 after: [desktop-qt5] + + fix-icon: + plugin: nil + override-build: + sed -i 's|Icon=barrier|Icon=/usr/share/icons/hicolor/scalable/apps/barrier.svg|' $SNAPCRAFT_STAGE/usr/share/applications/barrier.desktop + after: [barrier] + + appstream-flathub: + plugin: dump + source: https://github.com/flathub/com.github.debauchee.barrier.git + parse-info: [com.github.debauchee.barrier.appdata.xml] |
