-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcom.github.d4nj1.tlpui.yml
58 lines (58 loc) · 3.13 KB
/
com.github.d4nj1.tlpui.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
app-id: com.github.d4nj1.tlpui
command: tlpui
runtime: org.gnome.Platform
runtime-version: '47'
sdk: org.gnome.Sdk
finish-args:
- --socket=wayland
- --talk-name=org.freedesktop.Flatpak
# Required for X11 fallback
- --share=ipc
- --socket=fallback-x11
# TLP config and defaults files
#- --filesystem=/etc
#- --filesystem=/usr
#- --filesystem=/var/run/host/etc
#- --filesystem=/var/run/host/usr
# As the above don't work we have to use host permission
- --filesystem=host:ro
modules:
- python3-pyyaml.yaml
- name: tlpui
buildsystem: simple
build-commands:
- install -D host-exec-wrapper.sh /app/bin/host-exec-wrapper
- install -D tlpui/icons/themeable/hicolor/scalable/apps/tlpui.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -D tlpui/icons/themeable/hicolor/16x16/apps/tlpui.png /app/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png
- install -D tlpui/icons/themeable/hicolor/32x32/apps/tlpui.png /app/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
- install -D tlpui/icons/themeable/hicolor/48x48/apps/tlpui.png /app/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
- install -D tlpui/icons/themeable/hicolor/64x64/apps/tlpui.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
- install -D tlpui/icons/themeable/hicolor/96x96/apps/tlpui.png /app/share/icons/hicolor/96x96/apps/${FLATPAK_ID}.png
- install -D tlpui/icons/themeable/hicolor/128x128/apps/tlpui.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -D tlpui/icons/themeable/hicolor/256x256/apps/tlpui.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- install -D ${FLATPAK_ID}.appdata.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- desktop-file-edit --set-icon=${FLATPAK_ID} tlpui.desktop
- install -D tlpui.desktop /app/share/applications/${FLATPAK_ID}.desktop
- ln -s /app/bin/host-exec-wrapper /app/bin/tlp
- ln -s /app/bin/host-exec-wrapper /app/bin/tlp-stat
- ln -s /app/bin/host-exec-wrapper /app/bin/lsusb
- ln -s /app/bin/host-exec-wrapper /app/bin/lspci
- ln -s /app/bin/host-exec-wrapper /app/bin/pkexec
- ln -s /app/bin/host-exec-wrapper /app/bin/gksu
- ln -s /app/bin/host-exec-wrapper /app/bin/gksudo
- ln -s /app/bin/host-exec-wrapper /app/bin/kdesu
- ln -s /app/bin/host-exec-wrapper /app/bin/kdesudo
- rm pyproject.toml
- pip3 install --prefix=/app --no-index --no-deps .
sources:
- type: file
path: host-exec-wrapper.sh
- type: file
url: https://raw.githubusercontent.com/d4nj1/TLPUI/tlpui-1.7.1/AppImage/com.github.d4nj1.tlpui.appdata.xml
sha256: fc3927b4f8e5abbe1615e5670846da0d72496cba5ef1b84a8b920996534b1ff5
- type: file
url: https://raw.githubusercontent.com/d4nj1/TLPUI/tlpui-1.7.1/tlpui.desktop
sha256: b9381fcac28e578b0c744da9c62a500a103b38312e06dfc67a75b600ca27df59
- type: archive
url: https://files.pythonhosted.org/packages/77/46/3d21132ab55f53d3bab43164543d41f0268e064501bc80a43f43fca2c7d8/tlp_ui-1.7.1.tar.gz
sha256: 97354bf6b7d8e9382189c840f7bc4a10705dfdb401ebf38993f1891accd3fba8