barrier/snap/snapcraft.yaml

82 lines
2.1 KiB
YAML
Raw Normal View History

name: barrier-kvm # the Barrier Snappy for Linux / not tested on MAC yet
base: core18
2019-07-10 17:04:02 +00:00
version: master
version-script: git -C parts/barrier/src/ describe --tags --long | sed "s/^v//"
summary: Eliminate the barrier between your machines.
2019-03-16 10:37:06 +00:00
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.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
2019-07-10 17:16:53 +00:00
icon: res/barrier.svg
license: GPL-2.0
2019-03-16 10:37:06 +00:00
apps:
barrier:
command: desktop-launch barrier #first run might take longer
2019-07-10 17:16:26 +00:00
desktop: usr/share/applications/barrier.desktop
2019-07-10 17:06:42 +00:00
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
2019-07-10 17:06:42 +00:00
2019-03-16 10:37:06 +00:00
parts:
desktop-qt5:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
barrier:
source: .
plugin: cmake
2019-07-10 17:16:26 +00:00
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
2019-03-16 10:37:06 +00:00
build-packages:
- xorg-dev
- libcurl4-openssl-dev
- libavahi-compat-libdnssd-dev
- libssl-dev
- libx11-dev
- qtbase5-dev
- qt5-style-plugins
2019-03-16 10:37:06 +00:00
- libxinerama-dev
- libxrandr-dev
- libxrender-dev
- libxtst-dev
- qtdeclarative5-dev
- libavahi-common-dev
- libqt5svg5-dev
stage-packages:
- libxinerama1
- libxrandr2
- libxrender1
- libqt5gui5
- libqt5x11extras5
- libqt5svg5
- libxtst6
- libavahi-client3
- libavahi-common3
- libavahi-compat-libdnssd1
after: [desktop-qt5]
2019-07-10 17:16:26 +00:00
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]