-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
snapcraft.yaml
254 lines (253 loc) · 7.03 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# SPDX-FileCopyrightText: 2023 Scarlett Moore <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
---
name: labplot
confinement: strict
grade: stable
base: core22
adopt-info: labplot
apps:
labplot:
# extensions:
# - kde-neon
common-id: org.kde.labplot.desktop
desktop: usr/share/applications/org.kde.labplot.desktop
command: usr/bin/labplot
plugs:
- home
- desktop
- desktop-legacy
- opengl
- wayland
- x11
- audio-playback
- unity7
- network
- network-bind
- cups
command-chain:
- bin/tmpdir
- snap/command-chain/desktop-launch
assumes:
- snapd2.58.3
compression: lzo
plugs:
desktop:
mount-host-font-cache: false
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
kf5-5-111-qt-5-15-11-core22:
content: kf5-5-111-qt-5-15-11-core22-all
interface: content
default-provider: kf5-5-111-qt-5-15-11-core22
target: $SNAP/kf5
foo-install-cups:
interface: content
content: foo
default-provider: cups
target: $SNAP_DATA/foo
environment:
SNAP_DESKTOP_RUNTIME: $SNAP/kf5
QT_QPA_PLATFORMTHEME: flatpak
QT_QPA_FLATPAK_PLATFORMTHEME: kde
HOME: $SNAP_REAL_HOME
XDG_CACHE_HOME: $SNAP_USER_COMMON/.cache
XDG_CONFIG_HOME: $SNAP_USER_COMMON/.config
XDG_DATA_HOME: $SNAP_USER_COMMON/.local/share
hooks:
configure:
plugs:
- desktop
command-chain:
- snap/command-chain/hooks-configure-desktop
layout:
/usr/share/X11:
symlink: $SNAP/kf5/usr/share/X11
slots:
session-dbus-interface:
interface: dbus
name: org.kde.labplot
bus: session
package-repositories:
- type: apt
components:
- main
suites:
- jammy
key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
url: http://origin.archive.neon.kde.org/user
key-server: keyserver.ubuntu.com
parts:
kde-neon:
source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
source-type: local
plugin: make
make-parameters:
- PLATFORM_PLUG=kf5-5-111-qt-5-15-11-core22
build-snaps:
- kf5-5-111-qt-5-15-11-core22-sdk
build-environment:
- &id001
PATH: /snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
- &id002
XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
- &id003
XDG_CONFIG_HOME: $CRAFT_STAGE/etc/xdg:/snap/kf5-5-111-qt-5-15-11-core22-sdk/current/etc/xdg:/etc/xdg${XDG_CONFIG_HOME:+:$XDG_CONFIG_HOME}
- &id004
CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-111-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
launchers:
source: snap/local/launchers
plugin: dump
organize:
'*': bin/
qxlsx:
plugin: cmake
source: https://github.com/QtExcel/QXlsx.git
source-tag: v1.4.6
source-subdir: QXlsx
build-packages:
- cmake
- qtbase5-private-dev
cmake-parameters:
- "-DCMAKE_INSTALL_PREFIX=/usr"
- "-DCMAKE_BUILD_TYPE=Release"
- "-DENABLE_TESTING=OFF"
- "-DBUILD_TESTING=OFF"
- "-DKDE_SKIP_TEST_SETTINGS=ON"
- "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current"
- "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
prime:
- "-usr/lib/*/cmake/*"
- "-usr/include/*"
- "-usr/share/ECM/*"
- "-usr/share/doc/*"
- "-usr/share/man/*"
- "-usr/share/icons/breeze-dark*"
- "-usr/bin/X11"
- "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
- "-usr/lib/aspell/*"
- "-usr/share/lintain"
build-environment: &id005
- *id001
- *id002
- *id003
- *id004
labplot:
after:
- kde-neon
- qxlsx
parse-info:
- usr/share/metainfo/org.kde.labplot.appdata.xml
plugin: cmake
build-packages:
- libqt5mqtt-dev
- libcantorlibs-dev
- libkf5doctools-dev
- libhdf5-dev
- libgsl-dev
- libfftw3-dev
- bison
- kuserfeedback-dev
- libnetcdf-dev
- libcfitsio-dev
- libcerf-dev
- liblz4-dev
- gettext
- libpoppler-dev
- libpoppler-qt5-dev
- liborigin-dev
- libreadstat-dev
- libmatio-dev
- libmarkdown2-dev
- libfast5-dev
stage-packages:
- kio
- libkuserfeedbackwidgets1
- libgsl27
- libfftw3-double3
- bison
- libhdf5-103
- libxcb-keysyms1
- libxcb1
- libasn1-8-heimdal
- libbrotli1
- libcantorlibs28
- libcerf1
- libcfitsio9
- libcurl3-gnutls
- libgs9
- libgssapi3-heimdal
- libhcrypto4-heimdal
- libheimbase1-heimdal
- libheimntlm0-heimdal
- libhx509-5-heimdal
- libidn12
- libijs-0.35
- libjbig0
- libjbig2dec0
- libkrb5-26-heimdal
- liblcms2-2
- libldap-2.5-0
- libnetcdf19
- libnghttp2-14
- libnspr4
- libnss3
- libopenjp2-7
- libpaper1
- libpsl5
- libroken18-heimdal
- librtmp1
- libsasl2-2
- libspectre1
- libssh-4
- libtiff5
- libwebp7
- libwind0-heimdal
- liblz4-1
- liborigin
- libreadstat1
- libmatio11
- discount
source: .
source-type: local
cmake-parameters:
- "-DCMAKE_INSTALL_PREFIX=/usr"
- "-DCMAKE_BUILD_TYPE=Release"
- "-DENABLE_TESTING=OFF"
- "-DBUILD_TESTING=OFF"
- "-DKDE_SKIP_TEST_SETTINGS=ON"
- "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current\\;/usr"
- "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
prime:
- "-usr/lib/*/cmake/*"
- "-usr/include/*"
- "-usr/share/ECM/*"
- "-usr/share/doc/*"
- "-usr/share/man/*"
- "-usr/share/icons/breeze-dark*"
- "-usr/bin/X11"
- "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
- "-usr/lib/aspell/*"
- "-usr/share/lintian"
build-environment: *id005
override-pull: |
craftctl default
for file in ${CRAFT_PROJECT_DIR}/snap/local/patches/*
do
patch -i $file -p 1
done
cleanup:
after:
- kde-neon
- labplot
plugin: nil
override-prime: |
set -eux
# # Unused libraries found by linter