forked from flathub/org.winehq.Wine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.winehq.Wine.yml
573 lines (527 loc) · 17.1 KB
/
org.winehq.Wine.yml
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
id: org.winehq.Wine
default-branch: &app-version stable-23.08
x-extension-versions: &extension-versions stable;stable-23.08
sdk: org.freedesktop.Sdk
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '23.08'
x-gl-version: &gl-version '1.4'
x-gl-versions: &gl-versions 23.08;1.4
finish-args:
- --share=ipc
- --socket=x11
- --socket=wayland
- --device=all
- --socket=pulseaudio
- --share=network
- --allow=multiarch
- --allow=devel
- --system-talk-name=org.freedesktop.UDisks2
- --system-talk-name=org.freedesktop.NetworkManager
- --filesystem=xdg-desktop
- --filesystem=xdg-documents
- --filesystem=xdg-pictures
- --filesystem=xdg-music
- --filesystem=xdg-videos
- --filesystem=xdg-download
- --env=WINEDLLPATH=/app/dlls/lib32:/app/dlls/lib
- --env=WINEPREFIX=/var/data/wine
- --env=GST_PLUGIN_SYSTEM_PATH=/app/lib32/gstreamer-1.0:/app/lib/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
command: wine
rename-desktop-file: wine.desktop
rename-icon: wine
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: *runtime-version
org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: *runtime-version
no-autodownload: true
org.freedesktop.Platform.GL32:
directory: lib/i386-linux-gnu/GL
version: *gl-version
versions: *gl-versions
subdirectories: true
no-autodownload: true
autodelete: false
add-ld-path: lib
merge-dirs: vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d
download-if: active-gl-driver
enable-if: active-gl-driver
org.freedesktop.Platform.VAAPI.Intel.i386:
directory: lib/i386-linux-gnu/dri/intel-vaapi-driver
version: *runtime-version
subdirectories: true
no-autodownload: true
autodelete: false
add-ld-path: lib
download-if: active-gl-driver
enable-if: active-gl-driver
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
add-ld-path: .
version: *runtime-version
autodelete: false
org.freedesktop.Platform.ffmpeg_full.i386:
directory: lib32/ffmpeg
add-ld-path: .
version: *runtime-version
autodelete: false
org.winehq.Wine.gecko:
directory: share/wine/gecko
bundle: true
org.winehq.Wine.mono:
directory: share/wine/mono
bundle: true
org.winehq.Wine.DLLs:
directory: dlls
subdirectories: true
merge-dirs: lib;lib32;
version: *app-version
versions: *extension-versions
sdk-extensions:
- org.freedesktop.Sdk.Compat.i386
- org.freedesktop.Sdk.Extension.toolchain-i386
- org.freedesktop.Sdk.Extension.mingw-w64
build-options:
append-path: /usr/lib/sdk/mingw-w64/bin
env:
PERL5LIB: /app/lib/perl5/
PERL_MM_OPT: INSTALL_BASE=/app
x-compat-i386-opts: &compat_i386_opts
prepend-pkg-config-path: /app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig
# Some autotools-based builds will fail if -L/app/lib32 isn't first
ldflags: -L/app/lib32 -Wl,-rpath-link=/app/lib32 -Wl,-z,relro,-z,now -Wl,--as-needed
ldflags-override: true
append-path: /usr/lib/sdk/toolchain-i386/bin
env:
CC: ccache i686-unknown-linux-gnu-gcc
CXX: ccache i686-unknown-linux-gnu-g++
libdir: /app/lib32
separate-locales: false
cleanup:
- '*.a'
- '*.la'
- /share/doc
- /share/man
- /bin/function_grep.pl
- /bin/widl
- /bin/winecpp
- /bin/winedump
- /bin/wineg++
- /bin/winegcc
- /bin/winemaker
- /bin/wmc
- /bin/wrc
- /include/wine
- /lib/wine/*.def
- /lib32/wine/*.def
cleanup-commands:
- mkdir -p ${FLATPAK_DEST}/lib{,32}/ffmpeg
modules:
# Multilib deps
- name: libusb
sources: &libusb-sources
- type: archive
url: https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2
sha256: ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
x-checker-data:
type: json
url: https://api.github.com/repos/libusb/libusb/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^[vV]"; "")
timestamp-query: .published_at
url-query: .assets[] | select(.name=="libusb-\($version).tar.bz2") | .browser_download_url
- name: libusb-32bit
build-options:
arch:
x86_64: *compat_i386_opts
sources: *libusb-sources
- name: FAudio
buildsystem: cmake-ninja
config-opts: &FAudio-config-opts
- -DGSTREAMER=ON
sources: &FAudio-sources
- type: archive
url: https://github.com/FNA-XNA/FAudio/archive/24.02/FAudio-24.02.tar.gz
sha256: a7ab24c5aba32eba217505d5c3be25eee691e000b650c437c090f545be4fd668
x-checker-data:
type: json
url: https://api.github.com/repos/FNA-XNA/FAudio/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^[vV]"; "")
timestamp-query: .published_at
url-query: >-
"https://github.com/FNA-XNA/FAudio/archive/\($version)/FAudio-\($version).tar.gz"
- name: FAudio-32bit
build-options:
arch:
x86_64: *compat_i386_opts
buildsystem: cmake-ninja
config-opts: *FAudio-config-opts
sources: *FAudio-sources
- name: vkd3d
sources: &vkd3d-sources
- type: archive
url: https://dl.winehq.org/vkd3d/source/vkd3d-1.9.tar.xz
sha256: 9d1ebc6f36cccf40cffda3176851f73a0501b90c4d04e782abe79ca703057a4b
modules:
- name: spirv-headers
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/KhronosGroup/SPIRV-Headers.git
tag: sdk-1.3.261.1
commit: 124a9665e464ef98b8b718d572d5f329311061eb
- name: vkd3d-32bit
build-options:
arch:
x86_64: *compat_i386_opts
sources: *vkd3d-sources
- name: krb5
subdir: src
config-opts: &krb5-config-opts
- --localstatedir=/var/lib
- --sbindir=${FLATPAK_DEST}/bin
- --disable-static
- --disable-rpath
cleanup: &krb5-cleanup
- /bin
- /share/et
- /share/examples
- /share/man
sources: &krb5-sources
- type: archive
url: https://github.com/krb5/krb5/archive/refs/tags/krb5-1.21.2-final.tar.gz
sha256: 5827fa39ead0e7f7b8a158799eb5d50b194129e81b378892caedcafe50c5c195
x-checker-data:
type: anitya
project-id: 13287
stable-only: true
url-template: https://github.com/krb5/krb5/archive/refs/tags/krb5-$version.tar.gz
- type: shell
dest: src
commands:
- autoreconf -si
- name: krb5-32bit
subdir: src
build-options:
arch:
x86_64: *compat_i386_opts
config-opts: *krb5-config-opts
sources: *krb5-sources
cleanup: *krb5-cleanup
- name: krb5-config
buildsystem: simple
build-commands:
- install -Dm 644 krb5.conf -t /app/etc
sources:
- type: file
path: files/krb5.conf
- name: openldap
config-opts: &openldap-config-opts
- --disable-slapd
- --disable-slurpd
- --disable-bdb
- --disable-hdb
cleanup: &openldap-cleanup
- /bin
sources: &openldap-sources
- type: archive
url: https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.6.1.tgz
sha256: 9d576ea6962d7db8a2e2808574e8c257c15aef55f403a1fb5a0faf35de70e6f3
- name: openldap-32bit
build-options:
arch:
x86_64: *compat_i386_opts
config-opts: *openldap-config-opts
cleanup: *openldap-cleanup
sources: *openldap-sources
- name: samba
build-options:
config-opts:
- --libexecdir=lib/libexec
config-opts: &samba-config-opts
- --localstatedir=/var
- --sharedstatedir=/var/lib
- --enable-fhs
- --disable-python
- --without-json
- --without-ad-dc
- --without-ads
- --without-pam
- --without-systemd
cleanup:
- /sbin
sources: &samba-sources
- type: archive
url: https://download.samba.org/pub/samba/stable/samba-4.19.4.tar.gz
sha256: 4026d93b866db198c8ca1685b0f5d52793f65c6e63cb364163af661fdff0968c
x-checker-data:
type: html
url: https://download.samba.org/pub/samba/stable/
pattern: (samba-(\d+\.\d+\.\d+)\.tar\.gz)
modules:
- name: perl-Parse-Yapp
buildsystem: simple
build-commands: &perl-build-commands
- perl Makefile.PL
- make install
cleanup:
- '*'
sources:
- type: archive
url: https://cpan.metacpan.org/authors/id/W/WB/WBRASWELL/Parse-Yapp-1.21.tar.gz
sha256: 3810e998308fba2e0f4f26043035032b027ce51ce5c8a52a8b8e340ca65f13e5
- name: perl-JSON
buildsystem: simple
build-commands: *perl-build-commands
cleanup:
- '*'
sources:
- type: archive
url: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-4.07.tar.gz
sha256: 4f78b929798992e06106cf2bbc20de2375f7b60c60b3aa3ace02aae1e38513bb
- name: rpcsvc-proto
cleanup:
- '*'
sources:
- type: archive
url: https://github.com/thkukuk/rpcsvc-proto/archive/v1.4.3.tar.gz
sha256: 6906e0f81bb016bd0216460fc879d3d9f2f6d743be7dfb0d8b32d140226d5ef8
- name: samba-32bit
build-options:
arch:
x86_64: *compat_i386_opts
config-opts:
- --bindir=bin32
- --sbindir=sbin32
- --libexecdir=lib32/libexec
config-opts: *samba-config-opts
cleanup:
- /bin32
- /sbin32
- /lib32/samba
sources: *samba-sources
- name: unixodbc
sources: &unixodbc-sources
- type: archive
url: http://www.unixodbc.org/unixODBC-2.3.9.tar.gz
sha256: 52833eac3d681c8b0c9a5a65f2ebd745b3a964f208fc748f977e44015a31b207
cleanup: &unixodbc-cleanup
- /bin
- name: unixodbc-32bit
build-options:
arch:
x86_64: *compat_i386_opts
sources: *unixodbc-sources
cleanup: *unixodbc-cleanup
# Native arch build
- name: wine
build-options:
arch:
x86_64:
config-opts:
- --enable-win64
- --with-mingw=ccache x86_64-w64-mingw32-gcc
libdir: /app/lib
env:
LIBDIR: lib
config-opts: &wine-config-opts
- --disable-win16
- --disable-tests
- --with-x
- --with-pulse
- --with-dbus
- --without-hal
- --without-oss
make-install-args: &wine-make-install-args
- LDCONFIG=/bin/true
- UPDATE_DESKTOP_DATABASE=/bin/true
- INSTALL_PROGRAM_FLAGS=-s
sources: &wine-sources
- type: archive
url: https://dl.winehq.org/wine/source/9.0/wine-9.0.tar.xz
sha256: 7cfd090a5395f5b76d95bb5defac8a312c8de4c070c1163b8b58da38330ca6ee
x-addons-url: &wine-addons-url >-
https://source.winehq.org/git/wine.git/blob_plain/refs/heads/stable:/dlls/appwiz.cpl/addons.c
x-checker-data:
type: html
url: https://source.winehq.org/git/wine.git/blob_plain/refs/heads/stable:/VERSION
version-pattern: Wine version (\d[\d\w\.-]+\d)
url-template: https://dl.winehq.org/wine/source/$major.$minor/wine-$version.tar.xz
is-main-source: true
- type: patch
paths:
- patches/wine/loader-prefer-winedllpath.patch
# 32-bit compatibility build
- name: wine-32bit
only-arches:
- x86_64
build-options:
arch:
x86_64: *compat_i386_opts
config-opts:
- --bindir=${FLATPAK_DEST}/bin32
- --with-mingw=ccache i686-w64-mingw32-gcc
env:
LIBDIR: lib32
config-opts: *wine-config-opts
make-install-args: *wine-make-install-args
post-install:
- mv ${FLATPAK_DEST}/bin32/wine{,-preloader} ${FLATPAK_DEST}/bin/
sources: *wine-sources
cleanup:
- /bin32
# Tools
- name: winetricks
no-autogen: true
make-args:
- PREFIX=/app
make-install-args:
- PREFIX=/app
sources:
- type: git
url: https://github.com/Winetricks/winetricks.git
tag: '20240105'
commit: bc91718a5cad45e9f33de9b351a5960d5395bed5
x-checker-data:
type: git
tag-pattern: ^(\d+)$
modules:
- name: p7zip
no-autogen: true
make-args:
- all2
- OPTFLAGS=-O2 -g
- DEST_HOME=/app
- DEST_BIN=/app/bin
- DEST_SHARE=/app/lib/p7zip
- DEST_MAN=/app/share/man
make-install-args:
- DEST_HOME=/app
- DEST_BIN=/app/bin
- DEST_SHARE=/app/lib/p7zip
- DEST_MAN=/app/share/man
sources:
- type: archive
url: https://downloads.sourceforge.net/p7zip/p7zip_16.02_src_all.tar.bz2
sha256: 5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
- type: patch
paths:
- patches/p7zip/gcc10-conversion.patch
- patches/p7zip/14-Fix-g++-warning.patch
- type: shell
only-arches:
- x86_64
commands:
- ln -sf makefile.linux_amd64_asm makefile.machine
- type: shell
only-arches:
- i386
commands:
- ln -sf makefile.linux_x86_asm_gcc_4.X makefile.machine
modules:
- name: yasm
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/yasm/yasm/archive/v1.3.0.tar.gz
sha256: f708be0b7b8c59bc1dbe7134153cd2f31faeebaa8eec48676c10f972a1f13df3
cleanup:
- '*'
- name: cabextract
sources:
- type: archive
url: https://www.cabextract.org.uk/cabextract-1.9.1.tar.gz
sha256: afc253673c8ef316b4d5c29cc4aa8445844bee14afffbe092ee9469405851ca7
# Bundled extensions
- name: wine-gecko
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/wine/gecko/
- install -v -Dm755 *.msi -t ${FLATPAK_DEST}/share/wine/gecko/
post-install:
- >-
install -Dm644
-t ${FLATPAK_DEST}/share/wine/gecko/share/metainfo/
${FLATPAK_ID}.gecko.metainfo.xml
- >-
appstream-compose
--basename=${FLATPAK_ID}.gecko
--prefix=${FLATPAK_DEST}/share/wine/gecko
--origin=flatpak ${FLATPAK_ID}.gecko
sources:
- type: file
only-arches:
- i386
- x86_64
url: https://dl.winehq.org/wine/wine-gecko/2.47.4/wine-gecko-2.47.4-x86.msi
sha256: 26cecc47706b091908f7f814bddb074c61beb8063318e9efc5a7f789857793d6
x-checker-data:
type: html
url: *wine-addons-url
version-pattern: &wine-gecko-version-pattern >-
GECKO_VERSION\s+"(\d[\d\.]+\d)"
url-template: https://dl.winehq.org/wine/wine-gecko/$version/wine-gecko-$version-x86.msi
- type: file
only-arches:
- x86_64
url: https://dl.winehq.org/wine/wine-gecko/2.47.4/wine-gecko-2.47.4-x86_64.msi
sha256: e590b7d988a32d6aa4cf1d8aa3aa3d33766fdd4cf4c89c2dcc2095ecb28d066f
x-checker-data:
type: html
url: *wine-addons-url
version-pattern: *wine-gecko-version-pattern
url-template: https://dl.winehq.org/wine/wine-gecko/$version/wine-gecko-$version-x86_64.msi
- type: file
path: org.winehq.Wine.gecko.metainfo.xml
- name: wine-mono
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/wine/mono/
- cp -a wine-mono-* ${FLATPAK_DEST}/share/wine/mono/
post-install:
- >-
install -Dm644
-t ${FLATPAK_DEST}/share/wine/mono/share/metainfo/
${FLATPAK_ID}.mono.metainfo.xml
- >-
appstream-compose
--basename=${FLATPAK_ID}.mono
--prefix=${FLATPAK_DEST}/share/wine/mono
--origin=flatpak ${FLATPAK_ID}.mono
sources:
- type: archive
url: https://dl.winehq.org/wine/wine-mono/8.1.0/wine-mono-8.1.0-x86.tar.xz
strip-components: 0
sha256: 4e3e8a40729e4c9e3e9e651cebe4f1aed8f9a4d22e991e6cd24608687f0eedd4
x-checker-data:
type: html
url: *wine-addons-url
version-pattern: MONO_VERSION\s+"(\d[\d\.]+\d)"
url-template: https://dl.winehq.org/wine/wine-mono/$version/wine-mono-$version-x86.tar.xz
- type: file
path: org.winehq.Wine.mono.metainfo.xml
# Flatpak bundle
- name: bundle-setup
buildsystem: simple
build-commands:
- install -Dm644 -t ${FLATPAK_DEST}/etc ld.so.conf
- mkdir -p ${FLATPAK_DEST}/{,lib/debug/}lib/i386-linux-gnu/GL
- mkdir -p ${FLATPAK_DEST}/dlls
- install -Dm644 ${FLATPAK_ID}.appdata.xml -t ${FLATPAK_DEST}/share/appdata
- |
icondir=${FLATPAK_DEST}/share/icons/hicolor
install -Dm644 wine-logo.svg ${icondir}/scalable/apps/wine.svg
for s in 64 128 256; do
mkdir -p ${icondir}/${s}x${s}/apps
rsvg-convert -h ${s} -a -o ${icondir}/${s}x${s}/apps/wine.png ${icondir}/scalable/apps/wine.svg
done
sources:
- type: file
path: ld.so.conf
- type: file
path: wine-logo.svg
- type: file
path: org.winehq.Wine.appdata.xml