-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.coolero.Coolero.yaml
147 lines (142 loc) · 6.1 KB
/
org.coolero.Coolero.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
app-id: org.coolero.Coolero
runtime: org.kde.Platform
runtime-version: '6.2'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm12
command: coolero
finish-args:
# ipc for x11 performance
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=all
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.freedesktop.Flatpak
- --system-talk-name=org.freedesktop.login1
cleanup:
- /include
- /lib/pkgconfig
- '*.la'
- '*.a'
modules:
# embed the version of python we want to use (can remove once flatpak upgrades to 3.10)
- name: python
sources:
- type: archive
url: https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tar.xz
md5: 21f2e113e087083a1e8cf10553d93599
# automatically added python deps needed for own version:
- name: cython
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} "cython==0.29.30" --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/80/08/1c007f1d571f8f2a67ed6938cc79117fa5ae9c0d9ff633fbd5e52f212062/Cython-0.29.30-py2.py3-none-any.whl
sha256: acb72e0b42079862cf2f894964b41f261e941e75677e902c5f4304b3eb00af33
- name: wheel
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} "wheel==0.37.1" --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl
sha256: 4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a
- name: six
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} "six==1.16.0" --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
sha256: 8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254
- shared-modules/libusb/libusb.json
# prerequisites not handled by script
- name: cppy
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} cppy --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/ae/5c/4a70144d254a9fb719de0504b6d24b5054aa179b7703afc7562dc81d8c44/cppy-1.2.0-py3-none-any.whl
sha256: 535cdb8da79a9cd19f60708abccea40466ad340f307e47fbc5e8fa45652638c3
modules:
- name: setuptools
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} setuptools --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/03/c9/7b050ea4cc4144d0328f15e0b43c839e759c6c639370a3b932ecf4c6358f/setuptools-65.4.1.tar.gz
sha256: 3050e338e5871e70c72983072fe34f6032ae1cdeeeb67338199c2f74e083a80e
- name: pyamdgpuinfo
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} ./ --no-build-isolation
sources:
- type: git
url: https://github.com/mark9064/pyamdgpuinfo.git
tag: v2.1.3
commit: 55b379793e61e830a6227a547831fbfe6b3cd6a4
- type: shell
commands:
- sed -i 's|/usr/include/libdrm|/app/include/libdrm|' setup.py
modules:
- name: libdrm
buildsystem: simple
build-commands:
- meson build --prefix=/app
- ninja -C build/ install
sources:
- type: git
url: https://gitlab.freedesktop.org/mesa/drm.git
tag: libdrm-2.4.108
commit: d76c387125c7ad336f39121b9c3148361731bdad
- py-dependencies.yaml
- name: pyside6
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} pyside6_essentials --no-build-isolation
only-arches:
- x86_64
sources:
- type: file
url: https://files.pythonhosted.org/packages/32/69/e5dae85aa65d437edd840bbad1871b0ea311ba14a31b196aa420a178621c/PySide6_Essentials-6.4.1-cp37-abi3-manylinux_2_28_x86_64.whl
sha256: 457d73bb38cf7fb573a24da00ecb9aa7b8cf6a4cb5cc8ffcce2c241502a6e774
modules:
- name: shiboken6
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} shiboken6 --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/72/ec/6bef61f5b07be13fd8255fdc5c66d8a097581cc58163457cc219ea3afe7b/shiboken6-6.4.1-cp37-abi3-manylinux_2_28_x86_64.whl
sha256: 41e67b67f65626bdd909f9c5fd5f80231ee6ae43418b331590ba225b3cfabd5b
- name: coolero
buildsystem: simple
build-commands:
- mkdir -p /app/coolero
- cp -r coolero /app/coolero/coolero
- cp coolero.py /app/coolero/
- mkdir -p /app/bin
- install -Dm644 metadata/org.coolero.Coolero.png /app/share/icons/hicolor/scalable/apps/org.coolero.Coolero.png
- install -Dm644 metadata/org.coolero.Coolero.desktop /app/share/applications/org.coolero.Coolero.desktop
- install -Dm644 metadata/org.coolero.Coolero.metainfo.xml -t /app/share/metainfo
- sed -i 's|/usr/bin/env python3|/app/bin/python3|' /app/coolero/coolero.py # force use of own python version
- ln -s /app/coolero/coolero.py /app/bin/coolero
sources:
- type: git
url: https://gitlab.com/coolero/coolero.git
tag: 0.13.3
commit: 9535145c2ca94f6461a398b531c8dbc76af84d60
disable-submodules: true