forked from flathub/com.github.d4nj1.tlpui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.github.d4nj1.tlpui.yml
51 lines (51 loc) · 2.58 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
app-id: com.github.d4nj1.tlpui
command: tlpui
runtime: org.gnome.Platform
runtime-version: '43'
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:
- 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 AppImage/${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
- pip3 install --prefix=/app .
sources:
- type: file
path: host-exec-wrapper.sh
- type: git
url: https://github.com/d4nj1/TLPUI.git
tag: tlpui-1.5.0-6
commit: d4fa443b35aa6c1710d518c43f51da637a1c39a9