-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorg.openshot.OpenShot.yaml
259 lines (243 loc) · 7.74 KB
/
org.openshot.OpenShot.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
255
256
257
258
259
app-id: org.openshot.OpenShot
base: com.riverbankcomputing.PyQt.BaseApp
base-version: '5.15-24.08'
runtime: org.kde.Platform
runtime-version: '5.15-24.08'
sdk: org.kde.Sdk
command: openshot-qt
rename-icon: openshot-qt
rename-mime-icons:
- openshot-qt-doc
finish-args:
- --require-version=0.11.4 # fixes file saving
- --share=ipc
- --socket=x11
- --device=dri
- --share=network
- --filesystem=host
- --socket=pulseaudio
- --talk-name=org.freedesktop.Flatpak
- --env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
cleanup:
- /include
- /lib/cmake
- /lib/mkspecs
- /lib/pkgconfig
- /share/cmake
- /share/man
- /share/sip
- '*.a'
- '*.la'
cleanup-commands:
- /app/cleanup-BaseApp.sh
modules:
- python3-toml.json
- python3-packaging.json
- name: zeromq
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
cleanup:
- /bin
sources:
- type: archive
url: https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz
sha256: 6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43
- name: swig
config-opts:
- --without-alllang
- --with-python=/usr/bin/python3
- --without-boost
- --without-pcre
cleanup:
- '*'
sources:
- type: archive
url: https://downloads.sourceforge.net/project/swig/swig/swig-4.0.2/swig-4.0.2.tar.gz
sha256: d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc
- name: cppzmq
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DCPPZMQ_BUILD_TESTS=OFF
sources:
- type: git
url: https://github.com/zeromq/cppzmq.git
commit: 76bf169fd67b8e99c1b0e6490029d9cd5ef97666
tag: v4.7.1
- name: pyzmq
buildsystem: simple
build-commands:
- python3 setup.py install --prefix=/app --root=/
sources:
- type: git
url: https://github.com/zeromq/pyzmq.git
commit: 46af3b5f5fdfdfe4e3ea2a432081845c3c054609
tag: v22.3.0
- python3-requests.json
- name: ImageMagick
config-opts:
- --disable-static
cleanup:
- /bin
- /share/doc
sources:
- type: archive
url: https://download.imagemagick.org/archive/releases/ImageMagick-7.1.1-29.tar.xz
sha256: f140465fbeb0b4724cba4394bc6f6fb32715731c1c62572d586f4f1c8b9b0685
- name: resvg
buildsystem: simple
build-commands:
- cargo build --verbose --release --frozen --manifest-path capi/Cargo.toml --features "qt-backend"
- install -Dm644 target/release/libresvg.so -t /app/lib
- install -Dm644 capi/include/*.h -t /app/include/resvg
sources:
- type: archive
url: https://github.com/RazrFalcon/resvg/releases/download/v0.9.1/resvg-0.9.1.tar.xz
sha256: dd00841f0928c7106a6ee1ca761d7a61747d26a27038008a3568398136aa5b16
- type: shell
commands:
- sed -i 's|/usr/local/share/fonts/|/run/host/fonts/|' usvg/src/fontdb.rs
- type: patch
path: patches/resvg-qt515.patch
- name: 'x264'
config-opts:
- --disable-cli
- --enable-shared
sources:
- type: git
url: https://code.videolan.org/videolan/x264.git
commit: cde9a93319bea766a92e306d69059c76de970190
- name: nv-codec-headers
no-autogen: true
make-install-args:
- PREFIX=/app
cleanup:
- '*'
sources:
- type: git
url: https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
commit: a99740a84b49fd609e04b03279e66c5a8b767440
tag: n10.0.26.1
- name: ffmpeg
config-opts:
- --enable-gpl
- --disable-static
- --enable-shared
- --disable-doc
- --disable-programs
- --enable-libfontconfig
- --enable-libfreetype
- --enable-libopus
- --enable-libvorbis
- --enable-libvpx
- --enable-avresample
- --enable-libx264
cleanup:
- /share/ffmpeg
sources:
- type: archive
url: https://www.ffmpeg.org/releases/ffmpeg-4.2.4.tar.xz
sha256: 0d5da81feba073ee78e0f18e0966bcaf91464ae75e18e9a0135186249e3d2a0b
- type: patch
path: patches/ffmpeg-as-fix.patch
- name: libopenshot-audio
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
cleanup:
- /bin
- /share/doc
sources:
- type: archive
url: https://github.com/OpenShot/libopenshot-audio/archive/v0.4.0.tar.gz
sha256: 1abdedf9c8686c972c42225a283f518ed2ade445c2e454996b6709d8cc8d1704
- name: babl
buildsystem: meson
config-opts:
- -Denable-gir=false
- -Dwith-docs=false
sources:
- type: archive
url: https://download.gimp.org/pub/babl/0.1/babl-0.1.96.tar.xz
sha256: 33673fe459a983f411245a49f81fd7f1966af1ea8eca9b095a940c542b8545f6
# Required by libopenshot when building with opencv.
- name: protobuf
buildsystem: autotools
sources:
- type: git
url: https://github.com/protocolbuffers/protobuf/
# This is the expected version.
tag: v3.12.4
cleanup:
- /bin
- name: opencv
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_TESTING=OFF
- -DOPENCV_GENERATE_PKGCONFIG=ON
cleanup:
- /bin
sources:
- type: archive
url: https://github.com/opencv/opencv/archive/4.10.0.tar.gz
sha256: b2171af5be6b26f7a06b1229948bbb2bdaa74fcf5cd097e0af6378fce50a6eb9
x-checker-data:
type: anitya
project-id: 6615
stable-only: true
url-template: https://github.com/opencv/opencv/archive/$version.tar.gz
- type: archive
url: https://github.com/opencv/opencv_contrib/archive/4.10.0.tar.gz
sha256: 65597f8fb8dc2b876c1b45b928bbcc5f772ddbaf97539bf1b737623d0604cba1
x-checker-data:
type: anitya
project-id: 6615
stable-only: true
url-template: https://github.com/opencv/opencv_contrib/archive/$version.tar.gz
- name: libopenshot
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DENABLE_RUBY=0
cleanup:
- /share/doc
sources:
- type: archive
url: https://github.com/OpenShot/libopenshot/archive/v0.4.0.tar.gz
sha256: be0e760d81275543f7fbbf87863645748c3fe8aa8f4b5b771ff45a5d026bc9cc
- name: openshot-qt
buildsystem: simple
build-commands:
- find . -type f -exec sed -i 's/Bitstream Vera Sans/DejaVu Sans/g' {} +
- python3 setup.py install --prefix=/app --root=/
- install -D inkscape.sh /app/bin/inkscape
- install -D blender.sh /app/bin/blender
sources:
- type: script
dest-filename: inkscape.sh
commands:
- flatpak-spawn --host flatpak info org.inkscape.Inkscape >/dev/null 2>/dev/null &&
exec flatpak-spawn --host flatpak run org.inkscape.Inkscape "$@" ||
exec flatpak-spawn --host flatpak run --command=zenity $FLATPAK_ID --error --text="Inkscape not installed!"
- type: script
dest-filename: blender.sh
commands:
- INPUT_FILE="$(awk -F "=" '/app-path/ {print $2}' /.flatpak-info)${2:4}" &&
exec flatpak-spawn --host
flatpak run --filesystem=~/.local/share/flatpak --filesystem=/var/lib/flatpak org.blender.Blender -b ${INPUT_FILE} -P "$4"
- type: archive
url: https://github.com/OpenShot/openshot-qt/archive/v3.3.0.tar.gz
sha256: f5471eec94d59830ea58351b93e69d4c56b42874d927fbd6482f83b9bb545d4f
- type: patch
path: patches/openshot-appdata.patch