forked from KDE/kdenlive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
201 lines (201 loc) · 6.09 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
# Trigger rebuild 2
---
name: kdenlive
confinement: strict
grade: stable
base: core22
adopt-info: kdenlive
apps:
kdenlive:
# extensions:
# - kde-neon
common-id: org.kde.kdenlive.desktop
desktop: usr/share/applications/org.kde.kdenlive.desktop
command: usr/bin/kdenlive
plugs:
- desktop
- desktop-legacy
- opengl
- wayland
- x11
- home
- network
- network-bind
- audio-playback
- audio-record
- removable-media
- system-observe
command-chain:
- snap/command-chain/desktop-launch
pip:
command: bin/pip
plugs:
- network
- home
assumes:
- snapd2.55.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-110-qt-5-15-11-core22:
content: kf5-5-110-qt-5-15-11-core22-all
interface: content
default-provider: kf5-5-110-qt-5-15-11-core22
target: $SNAP/kf5
hooks:
configure:
plugs:
- desktop
command-chain:
- snap/command-chain/hooks-configure-desktop
layout:
/usr/share/X11:
symlink: $SNAP/kf5/usr/share/X11
environment:
PYTHONPYCACHEPREFIX: "$SNAP_USER_COMMON/.pycache"
PYTHONUSERBASE: $SNAP_USER_COMMON/.local
PIP_USER: 1
PYTHONPATH: "$PYTHONUSERBASE/lib/python3.10/site-packages:$SNAP/lib/python3.10/site-packages:$SNAP/usr/lib/python3/dist-packages"
MLT_REPOSITORY: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/mlt-7/"
MLT_DATA: "$SNAP/usr/share/mlt-7/"
MLT_ROOT_DIR: "$SNAP/usr/"
LADSPA_PATH: "$SNAP/usr/lib/ladspa"
FREI0R_PATH: "$SNAP/usr/lib/frei0r-1"
MLT_PROFILES_PATH: "$SNAP/usr/share/mlt-7/profiles/"
MLT_PRESETS_PATH: "$SNAP/usr/share/mlt-7/presets/"
SNAP_DESKTOP_RUNTIME: $SNAP/kf5
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/:$SNAP/usr/lib:/$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/lapack"
slots:
session-dbus-interface:
interface: dbus
name: org.kde.kdenlive
bus: session
package-repositories:
- type: apt
components:
- main
suites:
- jammy
key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
url: http://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-110-qt-5-15-11-core22
build-snaps:
- kf5-5-110-qt-5-15-11-core22-sdk
build-environment:
- &id001
PATH: /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
- &id002
XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kf5-5-110-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-110-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-110-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
python-deps:
after:
- kde-neon
plugin: python
source: .
build-packages:
- python3-dev
python-packages:
- vosk
- srt
- pip
stage:
- "-pyvenv.cfg"
kdenlive:
after:
- kde-neon
- python-deps
parse-info:
- usr/share/metainfo/org.kde.kdenlive.appdata.xml
plugin: cmake
build-packages:
- cmake
- libkf5doctools-dev
- libkf5purpose-dev
- librttr-dev
- libv4l-dev
- libmlt++-dev
- libmlt-dev
build-snaps:
- ffmpeg-2204
stage-packages:
- on amd64:
- libpsm-infinipath1
- frei0r-plugins
- librttr-core0.9.6
- libkf5purpose-bin
- dvgrab
- recordmydesktop
- swh-plugins
- libslang2
- libmagic1
- libgpm2
- kio-extras
- mediainfo
- kded5
- kinit
- kio
- melt
- qml-module-qtquick-controls
- qml-module-qtquick-shapes
- qml-module-qtquick2
- libcudart11.0
stage-snaps:
- ffmpeg-2204
source: .
source-type: local
cmake-parameters:
- "-DCMAKE_INSTALL_PREFIX=/usr"
- "-DCMAKE_BUILD_TYPE=Release"
- "-DMOD_GLAXNIMATE=ON"
- "-DBUILD_TESTING=OFF"
- "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current"
- "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
build-environment: &id005
- *id001
- *id002
- *id003
- *id004
override-build: |
craftctl default
sed -i "${CRAFT_PART_INSTALL}/usr/share/applications/org.kde.kdenlive.desktop" -e 's|Icon=kdenlive$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/kdenlive.svg|'
cd "${CRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps"
gzip -d -c kdenlive.svgz > kdenlive.svg
if [ "$CRAFT_TARGET_ARCH" = amd64 ]; then
ln -sf ../libpsm1/libpsm_infinipath.so.1.16 $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/libpsm_infinipath.so.1
fi
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/*
cleanup:
after:
- kdenlive
plugin: nil
override-prime: |
set -eux
#unused libs found by linter