forked from flathub/flathub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.ente.auth.yml
101 lines (98 loc) · 3.88 KB
/
io.ente.auth.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
app-id: io.ente.auth
runtime: org.gnome.Platform
runtime-version: "47"
sdk: org.gnome.Sdk
command: enteauth
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
# Flutter needs GPU permission.
- --device=dri
# Needs to talk to the network for authentication
- --share=network
# For desktop notifications
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
rename-appdata-file: enteauth.appdata.xml
rename-desktop-file: enteauth.desktop
rename-icon: enteauth
modules:
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- shared-modules/libsoup/libsoup-2.4.json
# source: https://github.com/flathub/org.geany.Geany/blob/master/webkitgtk.yml
- name: webkit2gtk-4.0
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DPORT=GTK
- -DUSE_GTK4=OFF
- -DUSE_SOUP2=ON # This makes it build webkit2gtk-4.0 instead of 4.1.
- -DUSE_LIBSECRET=OFF
- -DUSE_LIBBACKTRACE=OFF
- -DENABLE_GAMEPAD=OFF
- -DENABLE_INTROSPECTION=OFF
- -DENABLE_SPELLCHECK=OFF
- -DENABLE_DOCUMENTATION=OFF
- -DENABLE_MINIBROWSER=OFF
- -DENABLE_BUBBLEWRAP_SANDBOX=OFF # Unused inside of flatpak
sources:
- type: archive
url: https://webkitgtk.org/releases/webkitgtk-2.44.3.tar.xz
sha256: dc82d042ecaca981a4852357c06e5235743319cf10a94cd36ad41b97883a0b54
x-checker-data:
type: html
url: https://webkitgtk.org/releases/
version-pattern: LATEST-STABLE-(\d[\.\d]+\d)
url-template: https://webkitgtk.org/releases/webkitgtk-$version.tar.xz
- type: shell
commands:
- sed -i 's@NAMES avif.h@NAMES avif/avif.h@' Source/cmake/FindAVIF.cmake
- sed -i '/PATH_SUFFIXES avif/d' Source/cmake/FindAVIF.cmake
- sed -i 's@${AVIF_INCLUDE_DIR}/avif.h@${AVIF_INCLUDE_DIR}/avif/avif.h@' Source/cmake/FindAVIF.cmake
modules:
- name: unifdef
no-autogen: true
make-install-args:
- prefix=${FLATPAK_DEST}
sources:
- type: archive
url: https://dotat.at/prog/unifdef/unifdef-2.12.tar.xz
sha256: 43ce0f02ecdcdc723b2475575563ddb192e988c886d368260bc0a63aee3ac400
x-checker-data:
type: anitya
project-id: 5046
url-template: https://dotat.at/prog/unifdef/unifdef-$version.tar.xz
cleanup:
- "*"
- name: libsodium
sources:
- type: archive
url: https://github.com/jedisct1/libsodium/archive/1.0.18-RELEASE.tar.gz
sha256: b7292dd1da67a049c8e78415cd498ec138d194cfdb302e716b08d26b80fecc10
x-checker-data:
type: anitya
project-id: 1728
url-template: https://github.com/jedisct1/libsodium/archive/$version.tar.gz
- name: enteauth
buildsystem: simple
build-commands:
- bsdtar --to-stdout -xf ente-auth.deb data.* | bsdtar -xf -
- mv usr/share/* ${FLATPAK_DEST}/share/
- ARCH_TRIPLE=$(gcc --print-multiarch) && ln -s /usr/lib/${ARCH_TRIPLE}/libsqlite3.so.0 ${FLATPAK_DEST}/lib/libsqlite3.so
- ln -s ${FLATPAK_DEST}/share/enteauth/enteauth ${FLATPAK_DEST}/bin/enteauth
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/ente-io/ente/releases/download/auth-v4.0.3-beta.5/ente-auth-v4.0.3-beta.5-x86_64.deb
sha256: fa110e5be214e158c7ab7aefac9902cdf65c7f6ac2157275f2e20a73a35a361a
dest-filename: ente-auth.deb
x-checker-data:
type: json
url: https://api.github.com/repos/ente-io/ente/releases/latest
version-query: '[.[].tag_name | select(startswith("auth-v"))] | sort_by(split("-v")[1:])[-1]'
url-query: .[].assets[] | select(.name == "ente-auth-" + $version + "-x86_64.deb").browser_download_url
is-main-source: true