2019-08-22 21:54:58 +03:00
|
|
|
name: barrier
|
2019-08-19 00:24:32 +03:00
|
|
|
base: core18
|
2019-07-10 20:04:02 +03:00
|
|
|
version: master
|
2019-07-24 00:44:12 +03:00
|
|
|
version-script: git describe --tags --long | sed "s/^v//"
|
2019-07-10 20:17:39 +03:00
|
|
|
adopt-info: appstream-flathub
|
2019-03-17 09:33:19 +03:00
|
|
|
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 20:16:53 +03:00
|
|
|
icon: res/barrier.svg
|
|
|
|
license: GPL-2.0
|
2019-03-16 13:37:06 +03:00
|
|
|
|
2019-03-17 09:33:19 +03:00
|
|
|
apps:
|
2019-07-10 20:08:03 +03:00
|
|
|
barrier:
|
2019-03-17 09:33:19 +03:00
|
|
|
command: desktop-launch barrier #first run might take longer
|
2020-02-05 18:16:53 +03:00
|
|
|
environment:
|
|
|
|
DISABLE_WAYLAND: 1
|
2019-07-10 20:16:26 +03:00
|
|
|
desktop: usr/share/applications/barrier.desktop
|
2019-07-10 20:17:39 +03:00
|
|
|
common-id: com.github.debauchee.barrier
|
2019-07-10 20:06:42 +03:00
|
|
|
plugs: &plugs
|
|
|
|
- desktop
|
|
|
|
- desktop-legacy
|
|
|
|
- home
|
|
|
|
- joystick
|
|
|
|
- network
|
|
|
|
- opengl
|
|
|
|
- pulseaudio
|
|
|
|
- screen-inhibit-control
|
|
|
|
- unity7
|
|
|
|
- wayland
|
|
|
|
- x11
|
2019-07-10 20:08:03 +03:00
|
|
|
barrierc:
|
|
|
|
command: desktop-launch barrierc
|
|
|
|
plugs: *plugs
|
|
|
|
barriers:
|
|
|
|
command: desktop-launch barriers
|
|
|
|
plugs: *plugs
|
2019-07-10 20:06:42 +03:00
|
|
|
|
2019-03-16 13:37:06 +03:00
|
|
|
parts:
|
2019-03-17 09:33:19 +03:00
|
|
|
desktop-qt5:
|
|
|
|
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
|
|
|
source-subdir: qt
|
|
|
|
plugin: make
|
2019-07-10 20:12:31 +03:00
|
|
|
|
|
|
|
barrier:
|
|
|
|
source: .
|
2019-03-17 09:33:19 +03:00
|
|
|
plugin: cmake
|
2019-07-10 20:16:26 +03:00
|
|
|
configflags:
|
|
|
|
- "-DCMAKE_INSTALL_PREFIX=/usr"
|
2019-08-19 00:24:32 +03:00
|
|
|
- "-DCMAKE_BUILD_TYPE=Release"
|
2019-03-16 13:37:06 +03:00
|
|
|
build-packages:
|
2020-02-05 18:16:20 +03:00
|
|
|
- build-essential
|
2019-08-19 00:24:32 +03:00
|
|
|
- xorg-dev
|
2019-03-16 13:37:06 +03:00
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libavahi-compat-libdnssd-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libx11-dev
|
|
|
|
- qtbase5-dev
|
2019-03-17 09:33:19 +03:00
|
|
|
- qt5-style-plugins
|
2019-03-16 13:37:06 +03:00
|
|
|
- libxinerama-dev
|
|
|
|
- libxrandr-dev
|
|
|
|
- libxrender-dev
|
|
|
|
- libxtst-dev
|
|
|
|
- qtdeclarative5-dev
|
2019-03-17 09:33:19 +03:00
|
|
|
- libavahi-common-dev
|
2019-07-10 20:13:28 +03:00
|
|
|
- libqt5svg5-dev
|
|
|
|
stage-packages:
|
|
|
|
- libxinerama1
|
|
|
|
- libxrandr2
|
|
|
|
- libxrender1
|
|
|
|
- libqt5gui5
|
2019-03-17 09:33:19 +03:00
|
|
|
- libqt5x11extras5
|
|
|
|
- libqt5svg5
|
2019-07-10 20:13:28 +03:00
|
|
|
- libxtst6
|
|
|
|
- libavahi-client3
|
|
|
|
- libavahi-common3
|
|
|
|
- libavahi-compat-libdnssd1
|
2019-03-17 09:33:19 +03:00
|
|
|
after: [desktop-qt5]
|
2019-07-10 20:16:26 +03: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]
|
2019-07-10 20:17:39 +03:00
|
|
|
|
|
|
|
appstream-flathub:
|
|
|
|
plugin: dump
|
|
|
|
source: https://github.com/flathub/com.github.debauchee.barrier.git
|
|
|
|
parse-info: [com.github.debauchee.barrier.appdata.xml]
|