From: Ferenc Géczi <ferenc.gm@gmail.com>
---
.gitignore | 3 +-
README.md | 8 +++++
org.postmarketos.Shipments.yaml | 54 +++++++++++++++++++++++++++++++++
3 files changed, 64 insertions(+), 1 deletion(-)
create mode 100644 org.postmarketos.Shipments.yaml
diff --git a/.gitignore b/.gitignore
index 4f73a41..104aa27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,6 +27,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
+.flatpak-builder/
# PyInstaller
# Usually these files are written by a python script from a template
@@ -142,4 +143,4 @@ cython_debug/
/.idea
/build
*.gresource
-*~
\ No newline at end of file
+*~
diff --git a/README.md b/README.md
index b6fdc4c..5d92a92 100644
--- a/README.md
+++ b/README.md
@@ -23,3 +23,11 @@ $ meson build
$ meson compile -C build
$ sudo meson install -C build
```
+
+
+Building a flatpak package
+--------------------------
+
+```shell-session
+$ sudo flatpak-builder --install --force-clean build org.postmarketos.Shipments.yaml
+```
diff --git a/org.postmarketos.Shipments.yaml b/org.postmarketos.Shipments.yaml
new file mode 100644
index 0000000..8edf913
--- /dev/null
+++ b/org.postmarketos.Shipments.yaml
@@ -0,0 +1,54 @@
+app-id: org.postmarketos.Shipments
+runtime: org.gnome.Platform
+runtime-version: "42"
+sdk: org.gnome.Sdk
+command: shipments
+finish-args:
+ - --device=dri
+ - --share=network
+ - --share=ipc
+ - --socket=fallback-x11
+ - --socket=wayland
+build-options:
+ build-args:
+ - --share=network
+ env: {}
+cleanup:
+ - /include
+ - /lib/pkgconfig
+ - /man
+ - /share/doc
+ - /share/gtk-doc
+ - /share/man
+ - /share/pkgconfig
+ - '*.la'
+ - '*.a'
+modules:
+ - name: libhandy
+ buildsystem: meson
+ config-opts:
+ - -Dprofiling=false
+ - -Dintrospection=enabled
+ - -Dgtk_doc=false
+ - -Dtests=false
+ - -Dexamples=false
+ - -Dvapi=false
+ - -Dglade_catalog=disabled
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/libhandy.git
+ tag: 1.6.2
+ commit: f050453109db05621b9a47b9931fe1b571905e67
+ - name: requests
+ buildsystem: simple
+ build-options:
+ build-args:
+ - --share=network
+ build-commands:
+ - pip3 install --prefix=/app --no-cache-dir requests
+ - name: shipments
+ builddir: true
+ buildsystem: meson
+ sources:
+ - type: dir
+ path: .
--
2.34.2