-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.github.lruzicka.Needly.yaml
113 lines (103 loc) · 4.04 KB
/
com.github.lruzicka.Needly.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
# The YAML manifest for the Needle Flatpak
#
app-id: com.github.lruzicka.Needly
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: needly
finish-args:
- --share=ipc # For X11
- --socket=wayland # Enable communication with Wayland
- --socket=x11 # Alternatively, with X11
- --device=kvm # Allow access to a KVM device
- --filesystem=home # Allow read-write access to home dir
- --filesystem=host # Allow read-write access to host dir tree
- --filesystem=xdg-run/gvfs # Access gvfs mounts
- --filesystem=xdg-run/libvirt # Access to qemu:///session
- --filesystem=/run/libvirt # Access to qemu:///system
# Installing the application and the dependencies
#
modules:
# This will install the Tkinter support for Python as
# Tkinter is not part of the runtime.
- python3-tkinter.yaml
# This installs the Pillow library needed to work with images.
# It uses PIP.
- name: pillow
buildsystem: simple
build-commands:
- pip3 install --prefix=/app --no-deps .
sources:
- type: archive
url: https://files.pythonhosted.org/packages/03/a3/f61a9a7ff7969cdef2a6e0383a346eb327495d20d25a2de5a088dbb543a6/Pillow-9.0.1.tar.gz
sha256: 6c8bc8238a7dfdaf7a75f5ec5a663f4173f8c367e5a39f87e720495e1eed75fa
# This is a dependency for libvirt.
- name: libtirpc
config-opts:
- --disable-gssapi
- --libdir=/app/lib
sources:
- type: archive
url: https://downloads.sourceforge.net/sourceforge/libtirpc/libtirpc-1.3.2.tar.bz2
sha256: e24eb88b8ce7db3b7ca6eb80115dd1284abc5ec32a8deccfed2224fc2532b9fd
# This is another dependency for libvirt which is used to
# create the necessary documentation.
- name: docutils
buildsystem: simple
build-commands:
- pip3 install --prefix=/app docutils-0.16-py2.py3-none-any.whl
sources:
- type: file
url: https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl
sha256: 0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af
# Another libvirt dependency
- name: rpcsvc-proto
buildsystem: autotools
sources:
- type: archive
url: https://github.com/thkukuk/rpcsvc-proto/archive/v1.4.1.tar.gz
sha256: 750f7e57b81407a25b707867e90d7ee80aeb53bf515b114fc218f3c78dc9a6e8
# Libvirt
- name: libvirt
buildsystem: meson
build-options:
- cflags: -I/app/include/tirpc -ltirpc
config-opts:
- --localstatedir=/var
sources:
- type: archive
url: https://libvirt.org/sources/libvirt-8.0.0.tar.xz
sha256: 51e6e8ff04bafe96d7e314b213dcd41fb1163d9b4f0f75cdab01e663728f4cf6
# Python Libvirt API
- name: libvirt-python
buildsystem: simple
build-commands:
- pip3 install --prefix=/app libvirt-python-8.1.0.tar.gz
sources:
- type: file
url: https://files.pythonhosted.org/packages/2a/74/919462bed158ccc2a8061f31d82c157740c2e597ff50490526336e8aa688/libvirt-python-8.1.0.tar.gz
sha256: a21ecfab6d29ac1bdd1bfd4aa3ef58447f9f70919aefecd03774613f65914e43
# The Needly application
- name: needly
buildsystem: simple
build-options:
build-args:
- --share=network
build-commands:
- pip3 install --prefix=/app needly-2.5.5.tar.gz
- mkdir -pv /app/share/applications/
- cp -v *.desktop /app/share/applications
- mkdir -pv /app/share/icons/hicolor/128x128/apps
- cp -v *.png /app/share/icons/hicolor/128x128/apps
- mkdir -pv /app/share/appdata
- cp -v *.appdata.xml /app/share/appdata
sources:
- type: file
url: https://files.pythonhosted.org/packages/c7/55/ea3bf8d7ee3bedf68647a379495806a7f1d18329969e9c31abe711c70ee2/needly-2.5.5.tar.gz
sha256: 39cc702db74878dbf310ed79e4c932ead417308ed30fb9c167c720e874a7eb92
- type: file
path: bundle/com.github.lruzicka.Needly.png
- type: file
path: bundle/com.github.lruzicka.Needly.appdata.xml
- type: file
path: bundle/com.github.lruzicka.Needly.desktop