-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathio.github.mfat.portsinfo.yml
63 lines (58 loc) · 2.09 KB
/
io.github.mfat.portsinfo.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
app-id: io.github.mfat.portsinfo
runtime: org.gnome.Platform
runtime-version: '46'
sdk: org.gnome.Sdk
command: ports-info
finish-args:
# Allow X11/Wayland
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
# Allow network access for port scanning
- --share=network
# DBus access
- --socket=session-bus
- --socket=system-bus
- --talk-name=org.freedesktop.DBus
- --system-talk-name=org.freedesktop.DBus
# PolicyKit access
- --system-talk-name=org.freedesktop.PolicyKit1
- --filesystem=host
modules:
- name: python3-gobject
buildsystem: meson
config-opts:
- -Dpython=python3
sources:
- type: archive
url: https://download.gnome.org/sources/pygobject/3.46/pygobject-3.46.0.tar.xz
sha256: 426008b2dad548c9af1c7b03b59df0440fde5c33f38fb5406b103a43d653cafc
- name: python3-psutil
buildsystem: simple
build-commands:
- python3 setup.py install --prefix=/app --root=/
sources:
- type: archive
url: https://files.pythonhosted.org/packages/source/p/psutil/psutil-5.9.8.tar.gz
sha256: 6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c
- name: polkit
buildsystem: simple
build-commands:
- install -D io.github.mfat.portsinfo.policy /app/share/polkit-1/actions/io.github.mfat.portsinfo.policy
sources:
- type: file
path: io.github.mfat.portsinfo.policy
- name: ports-info
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/bin
- mkdir -p ${FLATPAK_DEST}/share/ports-info
- install -D main.py ${FLATPAK_DEST}/bin/ports-info
- chmod +x ${FLATPAK_DEST}/bin/ports-info
- install -D io.github.mfat.portsinfo.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.mfat.portsinfo.metainfo.xml
- install -D io.github.mfat.portsinfo.desktop ${FLATPAK_DEST}/share/applications/io.github.mfat.portsinfo.desktop
- install -D io.github.mfat.portsinfo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/io.github.mfat.portsinfo.svg
sources:
- type: git
url: https://github.com/mfat/ports-info.git
branch: main