-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
195 lines (194 loc) · 5.85 KB
/
snapcraft.yaml
File metadata and controls
195 lines (194 loc) · 5.85 KB
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
# SPDX-FileCopyrightText: 2024-2026 Scarlett Moore <sgmoore@kde.org>
#
# SPDX-License-Identifier: CC0-1.0
---
name: kgeotag
confinement: strict
grade: stable
base: core24
adopt-info: kgeotag
apps:
kgeotag:
extensions:
- kde-neon-6
common-id: org.kde.kgeotag
desktop: usr/share/applications/org.kde.kgeotag.desktop
command: usr/bin/kgeotag
plugs:
- audio-playback
- browser-support
- udisks2
- mount-observe
- home
environment:
QT_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/marble/plugins:$SNAP/usr/lib/x86_64-linux-gnu/plugins:/snap/kf6-core24/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/plugins"
layout:
/usr/share/marble:
symlink: $SNAP/usr/share/marble
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/marble:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/marble
slots:
session-dbus-interface:
interface: dbus
name: org.kde.kgeotag
bus: session
parts:
wayland:
source: https://gitlab.freedesktop.org/wayland/wayland.git
source-branch: 1.23
plugin: meson
meson-parameters:
- --prefix=/usr
build-snaps:
- kde-qt6-core24-sdk/latest/beta
- kf6-core24-sdk/latest/beta
build-packages:
- meson
- pkgconf
- xsltproc
- xmlto
- libexpat1-dev
- libffi-dev
- libxml2-dev
- doxygen
- graphviz
build-environment:
- PKG_CONFIG_PATH: "$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig:/snap/kde-qt6-core24-sdk/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig:/snap/kf6-core24-sdk/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig"
wayland-protocols:
after:
- wayland
source: https://gitlab.freedesktop.org/wayland/wayland-protocols.git
source-tag: 1.47
plugin: meson
meson-parameters:
- --prefix=/usr
build-snaps:
- kde-qt6-core24-sdk/latest/beta
- kf6-core24-sdk/latest/beta
build-packages:
- libwayland-dev
- meson
- pkgconf
build-environment:
- PKG_CONFIG_PATH: "$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig:/snap/kde-qt6-core24-sdk/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig:/snap/kf6-core24-sdk/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig"
- LD_LIBRARY_PATH: "$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/ffmpeg-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/kde-qt6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libproxy:$LD_LIBRARY_PATH"
libplasma:
after: [wayland-protocols]
source: https://invent.kde.org/plasma/libplasma.git
source-branch: Plasma/6.6
plugin: cmake
build-packages:
- libpulse0
- libxkbcommon-dev
- rsync
stage-packages:
- libpulse0
- libxkbcommon0
build-snaps:
- kde-qt6-core24-sdk/latest/beta
- kf6-core24-sdk/latest/beta
cmake-generator: Ninja
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DENABLE_QT5=OFF
- -DENABLE_QT6=ON
- -DBUILD_TESTING=OFF
override-build: |
craftctl default
rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
prime:
- -usr/bin/rsync
marble:
after:
- libplasma
source: https://invent.kde.org/education/marble.git
source-branch: master
plugin: cmake
build-snaps:
- kde-qt6-core24-sdk/latest/beta
- kf6-core24-sdk/latest/beta
build-packages:
- libpulse0
- rsync
- libshp-dev
- libgps-dev
- libwlocate-dev
- libabsl-dev
- libprotobuf-dev
- protobuf-compiler
- pkg-config
- libdrm2
stage-packages:
- libpulse0
- libshp4
- libgps30t64
- libwlocate0
- libabsl20220623t64
cmake-generator: Ninja
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DENABLE_QT5=OFF
- -DENABLE_QT6=ON
- -DBUILD_TESTING=OFF
override-pull: |
craftctl default
patch -p0 < ${SNAPCRAFT_PROJECT_DIR}/snap/local/patches/disable_broken_osm_plugin.patch
stage:
- -usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libz.so*
override-build: |
craftctl default
rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
build-environment:
- DICPATH: "$CRAFT_STAGE/usr/share/hunspell"
- LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/snap/kde-qt6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/kde-qt6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libproxy:/snap/kf6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/usr
- PKG_CONFIG_PATH: /snap/kde-qt6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig
prime:
- -usr/bin/rsync
kgeotag:
after:
- marble
parse-info:
- usr/share/metainfo/org.kde.kgeotag.appdata.xml
plugin: cmake
source: .
source-type: local
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
prime:
- -usr/lib/*/cmake/*
- -usr/include/*
- -usr/share/ECM/*
- -usr/share/man/*
- -usr/bin/X11
- -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0
- -usr/lib/aspell/*
- -usr/share/lintian
gpu-2404:
after: [kgeotag]
source: https://github.com/canonical/gpu-snap.git
plugin: dump
override-prime: |
craftctl default
${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404
prime:
- bin/gpu-2404-wrapper
cleanup:
after:
- kgeotag
plugin: nil
build-snaps:
- core24
- kf6-core24
override-prime: |
set -eux
for snap in "core24" "kf6-core24"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
done