forked from flathub/com.wps.Office
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.wps.Office.yml
92 lines (83 loc) · 2.46 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
id: com.wps.Office
runtime: org.freedesktop.Platform
runtime-version: '19.08'
sdk: org.kde.Sdk//5.14
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
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
- name: wps-i18n
no-autogen: true
make-args:
- DESTDIR=/app/share/wps/office6
make-install-args:
- DESTDIR=/app/share/wps/office6
sources:
- type: git
url: https://github.com/wps-community/wps_i18n.git
commit: cd7cd5cf277e74f1f7212b129c24f92cb2595342
- type: patch
path: wps-i18n-fix-tags.patch
- type: patch
path: wps-i18n-makefile-destdir.patch
- 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/$(gcc -print-multiarch)/libbfd-*.so -t /app/lib/
sources:
- type: file
path: apply_extra.sh
- type: file
path: com.wps.Office.metainfo.xml
- type: file
path: wps.sh
- type: extra-data
filename: wps-office.deb
only-arches:
- x86_64
url: http://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/9505/wps-office_11.1.0.9505.XA_amd64.deb
sha256: 65e21d3138e84f6f74ece66a523de8673cb7583537cc33b99e835f3b1aef6aaf
size: 212685550
installed-size: 988671247
x-checker-data:
type: html
url: https://linux.wps.com/js/meta.js
version-pattern: version\s*=\s*"([\d.-]+)"
url-pattern: download_link_deb\s*=\s*"(http[s]?://[\w\d$-_@.&+]+)"