-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnz.mega.MEGAsync.yml
214 lines (202 loc) · 7.06 KB
/
nz.mega.MEGAsync.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
id: nz.mega.MEGAsync
sdk: org.kde.Sdk
runtime: org.kde.Platform
runtime-version: 5.15-23.08
finish-args:
- --device=dri
# The user should use flatseal to grant these permissions
#- --filesystem=~/MEGA:create
#- --filesystem=~/MEGAsync Downloads:create
#- --filesystem=~/MEGAsync:create
#- --own-name=org.kde.*
- --share=ipc
- --share=network
- --socket=pulseaudio
- --socket=wayland
- --socket=x11
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
command: megasync
rename-icon: mega
copy-icon: true
rename-desktop-file: megasync.desktop
cleanup:
- '*.a'
- '*.la'
- /include
- /lib/cmake
- /lib/pkgconfig
- /share/doc
- /share/man
modules:
- name: MEGAsync
buildsystem: cmake
builddir: true
build-options:
env:
DESKTOP_DESTDIR: /app
cxxflags: -Wno-dev
config_opts:
- -DCMAKE_BUILD_TYPE:STRING='None'
- -DCMAKE_MODULE_PATH:PATH="src/MEGASync/mega/contrib/cmake/modules/packages"
- -DCMAKE_SKIP_INSTALL_RPATH:BOOL='YES'
- -DUSE_PDFIUM:STRING=0
post-install:
- cp -r /app/usr/share/applications /app/share/applications
- cp -r /app/usr/share/icons /app/share/icons
- cp /app/usr/bin/megasync /app/bin/megasync
sources:
- type: git
url: https://github.com/meganz/MEGAsync.git
tag: v5.7.1.0_Linux
commit: 407b6e77975ad57cf465cf8cafbaa1053ccc94cd
disable-submodules: true
x-checker-data:
type: json
url: https://api.github.com/repos/meganz/MEGAsync/releases
tag-query: map(select(.tag_name | endswith("_Linux"))) | first | .tag_name
version-query: $tag | sub("^v"; "") | sub("_Linux$"; "")
timestamp-query: map(select(.tag_name==$tag)) | first | .published_at
is-main-source: true
- type: git
url: https://github.com/meganz/sdk.git
commit: d6a5d2078d1e51394dab205a48bff58d2b130d6b
dest: src/MEGASync/mega
- type: shell
commands:
- cp src/MEGASync/mega/.clang-format ./
- type: patch
path: patches/0001-feat-add-AppData-manifest.patch
- type: patch
path: patches/0001-freeimage-cap-truncated.patch
- type: patch
path: patches/aarch64-port-MegaSync.diff
- type: patch
path: patches/aarch64-port-mega.diff
modules:
- name: cryptopp
no-autogen: true
make-args:
- shared
install-rule: install-lib
make-install-args:
- PREFIX=/app
- LIBDIR=/app/lib
build-options:
# Generally speaking, you should not use Link Time Optimization for
# Crypto++. There are three reasons for the recommendation. First, we
# don't want the linker changing object files or the executables
# produced during link. The linker's job is to combine object files,
# not attempt to peephole optimize them.
# https://www.cryptopp.com/wiki/Link_Time_Optimization
cflags: -fno-lto
cxxflags: -fno-lto
sources:
- type: git
url: https://github.com/weidai11/cryptopp.git
tag: CRYPTOPP_8_9_0
commit: 843d74c7c97f9e19a615b8ff3c0ca06599ca501b
x-checker-data:
type: json
url: https://api.github.com/repos/weidai11/cryptopp/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
cleanup:
- /bin
- /share
- name: c-ares
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/c-ares/c-ares/releases/download/v1.34.4/c-ares-1.34.4.tar.gz
sha256: fa38dbed659ee4cc5a32df5e27deda575fa6852c79a72ba1af85de35a6ae222f
x-checker-data:
type: html
url: https://c-ares.haxx.se/download/
pattern: (c-ares-(\d\.\d+\.?\d*).tar.gz)
cleanup:
- /bin
- name: freeimage
subdir: FreeImage/tags/3.18.0
no-autogen: true
build-options:
arch:
aarch64:
cflags: -fPIC -DPNG_ARM_NEON_OPT=0
cxxflags: -fPIC -std=c++11 -DPNG_ARM_NEON_OPT=0
x86_64:
cxxflags: -std=c++11
make-install-args:
- DESTDIR=/app
- INCDIR=/app/include
- INSTALLDIR=/app/lib
sources:
- type: svn
url: https://svn.code.sf.net/p/freeimage/svn/
revision: r1903
- type: patch
path: patches/freeimage-makefile-install.patch
- name: libsodium
sources:
- type: git
url: https://github.com/jedisct1/libsodium.git
tag: 1.0.20-RELEASE
commit: 9511c982fb1d046470a8b42aa36556cdb7da15de
x-checker-data:
type: json
url: https://api.github.com/repos/jedisct1/libsodium/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
- name: libmediainfo
buildsystem: cmake-ninja
subdir: Project/CMake
builddir: true
sources:
- type: archive
url: http://mediaarea.net/download/source/libmediainfo/24.12/libmediainfo_24.12.tar.xz
sha256: 1f4986207f75deb290915e6bf0b33e3e455774305dd266ffe8997c01aad65b27
modules:
- name: libzen
buildsystem: cmake-ninja
subdir: Project/CMake
builddir: true
sources:
- type: archive
url: https://mediaarea.net/download/source/libzen/0.4.41/libzen_0.4.41.tar.xz
sha256: 933bad3b7ecd29dc6bdc88a83645c83dfd098c15b0b90d6177a37fa1536704e8
- name: libuv
sources:
- type: archive
url: https://dist.libuv.org/dist/v1.50.0/libuv-v1.50.0.tar.gz
sha256: 6dc2b39aa7fa66c04e2e015bf47738b84e1c6b86b8987d57dd432d149d77ee25
- name: LibRaw
config-opts:
- --disable-examples
- --disable-static
sources:
- type: archive
url: https://www.libraw.org/data/LibRaw-0.21.3.tar.gz
sha256: dba34b7fc1143503942fa32ad9db43e94f714e62a4a856e91617f8f3e1e0aa5c
cleanup:
- /bin
- name: xrdb
sources:
- type: archive
url: https://www.x.org/releases/individual/app/xrdb-1.2.2.tar.gz
sha256: db2d774a35ae2f7e7ac61cc2de0dcae27fc2aa14399c35721f8300e63ea73549
x-checker-data:
type: html
url: https://www.x.org/releases/individual/app/
pattern: (xrdb-(\d\.\d+\.?\d*).tar.gz)
modules:
- name: libXmu
sources:
- type: archive
url: https://www.x.org/releases/individual/lib/libXmu-1.2.1.tar.gz
sha256: bf0902583dd1123856c11e0a5085bd3c6e9886fbbd44954464975fd7d52eb599
x-checker-data:
type: html
url: https://www.x.org/releases/individual/lib/
pattern: (libXmu-(\d\.\d+\.?\d*).tar.gz)