-
Notifications
You must be signed in to change notification settings - Fork 114
/
snapcraft.yaml
77 lines (72 loc) · 2.06 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: heimer
version: '4.4.0'
summary: Heimer is a simple cross-platform mind map tool.
description: |
Heimer is a simple cross-platform mind map creation tool.
Emphasis on easy diagram creation, simplicity, and speed.
grade: stable
confinement: strict
base: core20
icon: data/icons/heimer.png
apps:
heimer:
command: bin/desktop-launch heimer
environment:
DISABLE_WAYLAND: 1 # UI completely broken on Ubuntu 22.04 without this
desktop: usr/share/applications/heimer.desktop
plugs: [home, desktop, desktop-legacy, removable-media, unity7, x11, wayland, opengl]
plugs: # additional plug to fix mouse cursor theme
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
parts:
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
- libqt5xml5
- libqt5svg5 # for loading icon themes which are svg
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
- qt5-style-plugins # for mouse cursor theme fix
- qtwayland5 # Needed in Ubuntu 22.04
gnu-heimer:
source: .
plugin: cmake
cmake-parameters:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/usr
- -DBUILD_TESTS=OFF
- -DPACKAGE_TYPE=Snap
build-packages:
- qtbase5-dev
- qttools5-dev
- qttools5-dev-tools
- libqt5svg5-dev
stage-packages:
- libqt5gui5
- libqt5svg5
- libqt5xml5
after: [desktop-qt5]
override-prime: |
set -eu
snapcraftctl prime
# Fix-up application icon lookup
sed --in-place 's|^Icon=.*|Icon=\${SNAP}/meta/gui/icon.png|' usr/share/applications/heimer.desktop