-
Notifications
You must be signed in to change notification settings - Fork 12
/
me.kozec.syncthingtk.yaml
158 lines (134 loc) · 4.95 KB
/
me.kozec.syncthingtk.yaml
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
app-id: me.kozec.syncthingtk
runtime: org.gnome.Platform
runtime-version: '45'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
- org.freedesktop.Sdk.Extension.rust-stable
command: syncthing-gtk
rename-desktop-file: syncthing-gtk.desktop
rename-icon: syncthing-gtk
finish-args:
# Wayland
- --socket=wayland
# Fallback X11 + XShm access
- --socket=fallback-x11
- --share=ipc
# Folders for syncing can be anywhere
- --filesystem=host
# Network access for sync
- --share=network
# System tray icon
- --talk-name=org.kde.StatusNotifierWatcher
# Cleanup after the python modules
cleanup:
- /include
- /lib/pkgconfig
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/python3-bcrypt/cargo
CARGO_NET_OFFLINE: 'true'
RUST_BACKTRACE: '1'
RUSTFLAGS: -g
# sccache hopefully speeds up subsequent compilations
RUSTC_WRAPPER: /app/bin/sccache
SCCACHE_DIR: /run/ccache/sccache/
modules:
- name: psmisc
sources:
- type: archive
url: https://downloads.sourceforge.net/psmisc/psmisc-23.7.tar.xz
sha256: 58c55d9c1402474065adae669511c191de374b0871eec781239ab400b907c327
x-checker-data:
type: anitya
project-id: 3721
url-template: https://downloads.sourceforge.net/psmisc/psmisc-$version.tar.xz
cleanup:
- /bin/fuser
- /bin/p*
- /share/man
- name: gobject-introspection
disabled: true
buildsystem: meson
sources:
- type: archive
url: https://download.gnome.org/sources/gobject-introspection/1.71/gobject-introspection-1.71.0.tar.xz
sha256: 555dc3997c2892228543029f58610b83fc1da733e4e3d18e9363d7b5a81164dd
- shared-modules/dbus-glib/dbus-glib-0.110.json
- shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json
# There's also https://github.com/flathub/org.thonny.Thonny/blob/7f38ec42e3f824e93fff7f1745632989c12985ed/org.thonny.Thonny.yaml#L212
- name: python3-bcrypt
buildsystem: simple
build-commands:
- echo $PATH
- rustc --version
- pip3 show setuptools
- python3 setup.py build
- python3 setup.py install "--prefix=${FLATPAK_DEST}"
#- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" "--prefix=${FLATPAK_DEST}" .
sources:
- rust-sources.json
- type: git
url: https://github.com/pyca/bcrypt.git
tag: 4.1.2
commit: b9223e61e2aec6f2d4841e3fa1f8e5d1ab7e4b61
modules:
# setup caching
- name: sccache
buildsystem: simple
build-commands:
- install -Dma+rwx sccache /app/bin/sccache
cleanup:
- /bin/sccache
sources:
- type: archive
url: https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz
sha256: e5d03a9aa3b9fac7e490391bbe22d4f42c840d31ef9eaf127a03101930cbb7ca
only-arches: [x86_64]
- type: archive
url: https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-aarch64-unknown-linux-musl.tar.gz
sha256: 90d91d21a767e3f558196dbd52395f6475c08de5c4951a4c8049575fa6894489
only-arches: [aarch64]
# flatpak-pip-generator --runtime org.freedesktop.Sdk//22.08 --checker-data wheel pip python-dateutil setuptools setuptools_scm cffi 'setuptools_rust' 'bcrypt >= 4'
- python3-modules.json
# Pulling in libnotify again pretty much just for the GIR bindings.
- name: libnotify
buildsystem: meson
config-opts:
- -Dintrospection=enabled
- -Dtests=false
- -Dman=false
- -Dgtk_doc=false
- -Ddocbook_docs=disabled
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libnotify.git
tag: 0.8.3
commit: 6083790f9e0f1827147ecd8799c4dced0e86a877
x-checker-data:
type: git
tag-pattern: ^([\d.]+)$
- syncthing.yaml
- name: syncthing-gtk
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} "." --no-build-isolation
# Trying to adjust the filenames to have them exported so that the tray can be shown properly
- for icon in /app/share/icons/hicolor/*/status/si-syncthing*.png; do cp -ar
--reflink=auto $icon ${icon/si-syncthing/me.kozec.syncthingtk}; done
- for icon in /app/share/icons/hicolor/*/emblems/*-active.png; do cp -ar --reflink=auto
$icon ${icon/emblem-syncthing/me.kozec.syncthingtk}; done
sources:
- type: git
url: https://github.com/syncthing-gtk/syncthing-gtk.git
commit: 3118560fe15e7b2c638c09c66c9be21725bfe2dc
tag: 0.9.4.5
x-checker-data:
type: git
pattern: \d\.\d\.\d\.\d
- type: patch
path: 0001-appdata-remove-URL-to-make-the-validator-stop-compla.patch
cleanup:
- /share/pixmaps