-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcom.wps.Office.yml
115 lines (100 loc) · 3.37 KB
/
com.wps.Office.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
id: com.wps.Office
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
tags:
- proprietary
command: wps
separate-locales: false
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
- --device=dri
- --persist=.kingsoft
- --env=TMPDIR=/var/tmp
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-pictures
- --filesystem=xdg-videos
- --filesystem=/run/media
- --filesystem=/media
- --env=QT_PLUGIN_PATH=/app/lib/qt/plugins:/app/extra/wps-office/office6/qt/plugins
add-extensions:
com.wps.Office.spellcheck:
directory: extra/wps-office/office6/dicts/spellcheck
subdirectories: true
no-autodownload: true
autodelete: true
cleanup:
- '*.a'
- '*.la'
- /include
- /lib/pkgconfig
- /lib/cmake
modules:
- shared-modules/gtk2/gtk2.json
- shared-modules/glu/glu-9.json
- modules/fcitx-im-module.yml
# Needed by wpspdf as of 11.1.0.11719
- name: libtiff5
buildsystem: cmake
sources:
- type: archive
url: https://download.osgeo.org/libtiff/tiff-4.4.0.tar.gz
sha256: 917223b37538959aca3b790d2d73aa6e626b688e02dcda272aec24c2f498abed
# https://github.com/flathub/com.wps.Office/issues/150
- name: freetype
buildsystem: meson
sources:
- type: archive
url: https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.13.0.tar.xz
sha256: 5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c
- name: wps
buildsystem: simple
build-commands:
- install -Dm755 apply_extra.sh /app/bin/apply_extra
- install -Dm755 wps.sh /app/bin/wps
- ln -s wps /app/bin/et
- ln -s wps /app/bin/wpp
- ln -s wps /app/bin/wpspdf
- install -Dm644 ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/
- install -Dm755 /usr/bin/desktop-file-edit -t /app/bin/
- install -Dm755 /usr/bin/ar -t /app/bin/
- install -Dm755 /usr/lib/x86_64-linux-gnu/libsframe.so* -t /app/lib/
- install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t /app/lib/
- install -Dm644 com.wps.Office.desktop -t /app/share/applications
- for icon_size in 64 128 256 512; do install -Dm644 wps_office_${icon_size}.png
/app/share/icons/hicolor/${icon_size}x${icon_size}/apps/com.wps.Office.png;
done
sources:
- type: file
path: apply_extra.sh
- type: file
path: com.wps.Office.metainfo.xml
- type: file
path: wps.sh
- type: file
path: icons/wps_office_64.png
- type: file
path: icons/wps_office_128.png
- type: file
path: icons/wps_office_256.png
- type: file
path: icons/wps_office_512.png
- type: file
path: com.wps.Office.desktop
- type: extra-data
filename: wps-office.deb
only-arches:
- x86_64
url: https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/11719/wps-office_11.1.0.11719.XA_amd64.deb
sha256: 64ae7ebcfacf821746c8ca43d11950702665cae678450c0fddccdb2272f3b26c
size: 319340366
x-checker-data:
type: html
url: https://www.wps.com/whatsnew/linux/
version-pattern: \W(\d+\.\d+\.\d+\.\d+)\W
url-template: >-
https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$version3/wps-office_$version.XA_amd64.deb