-
-
Notifications
You must be signed in to change notification settings - Fork 414
/
snapcraft.yaml
142 lines (134 loc) · 3.71 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: qownnotes
version: git
version-script: cat src/version.h | sed "s/[^0-9,.]//g"
summary: Plain-text file markdown note taking with Nextcloud/ownCloud integration
grade: stable
confinement: strict
base: core22
description: |
QOwnNotes is the open source (GPL) plain-text file markdown note taking app
for GNU/Linux, macOS and Windows, that (optionally) works together with the
notes application of Nextcloud/ownCloud.
https://www.qownnotes.org/
#package-repositories:
# - type: apt
# ppa: daschuer/qt6-backports
apps:
qownnotes:
command: desktop-launch $SNAP/usr/bin/QOwnNotes -style=Breeze --snap
environment:
DISABLE_WAYLAND: 1
QT_QPA_PLATFORMTHEME: gtk3
# see https://docs.snapcraft.io/reference/interfaces
plugs:
- x11
- unity7
- network
- network-bind
- home
# - kde-frameworks-5-plug
- desktop
- desktop-legacy
- removable-media
- opengl
- cups-control
# plugs:
# kde-frameworks-5-plug:
# content: kde-frameworks-5-all
# interface: content
# default-provider: kde-frameworks-5
# target: kf5
plugs: # plugs for theming, font settings, cursor and to use gtk3 file chooser
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes:gtk-3-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes:icon-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes:sounds-themes
parts:
qownnotes:
source: https://github.com/pbek/qownnotes.git
# see https://snapcraft.io/docs/qmake-plugin
plugin: qmake
qmake-project-file: /root/parts/qownnotes/src/src/QOwnNotes.pro
qmake-parameters:
- CONFIG+=release
- CONFIG+=snapcraft
override-build: |
export QT_SELECT=qt6
>&2 pwd
>&2 find
# cd src
# remove the default desktop file
rm ../src/src/PBE.QOwnNotes.desktop
echo "#define RELEASE \"Snapcraft.io\"" > release.h
# qmake INSTALLDIR=/usr
lrelease ../src/src/QOwnNotes.pro
# make -j $(nproc)
# make install
# cd ..
snapcraftctl build
build-packages:
- qt6-base-dev
- qt6-declarative-dev
- libqt6svg6-dev
- libqt6websockets6-dev
- libqt6core5compat6-dev
stage-packages:
- libqt6svg6
- libqt6svgwidgets6
- libqt6websockets6
- libqt6core5compat6
- libqt6gui6
- libqt6sql6
- libqt6sql6-sqlite
- libqt6widgets6
- libqt6qml6
- libqt6network6
- libqt6xml6
- libqt6printsupport6
stage:
- -usr/share/pkgconfig
after: [desktop-qt6]
desktop-qt6:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
make-parameters: ["FLAVOR=qt6"]
build-packages:
- build-essential
- qt6-base-dev
- dpkg-dev
stage-packages:
- libxkbcommon0
- fonts-ubuntu
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt6gui6
- libgdk-pixbuf2.0-0
- libqt6svg6 # for loading icon themes which are svg
- locales-all
- xdg-user-dirs
plasma-integration:
plugin: nil
stage-packages:
# - plasma-integration # causes the KDE file selector to be used that didn't work
- kde-style-breeze
- breeze-icon-theme
# - kio # runtime slaves for kio, but does not seem to work
prime:
- "-usr/share/wallpapers/*"
- "-usr/share/fonts/*"
qt6-gtk-platform:
plugin: nil
stage-packages:
- qt6-gtk-platformtheme