build: Add a Flatpak manifest

This allows building the master branch of QElectroTech with a simple
command:

$ flatpak-builder _build build-aux/flatpak/org.qelectrotech.QElectroTech.json
This commit is contained in:
Mathieu Bridon
2020-02-14 11:33:12 +01:00
committed by Laurent Trinques
parent d26b189d3d
commit 975f0db7ec
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{
"id": "org.qelectrotech.QElectroTech",
"runtime": "org.kde.Platform",
"runtime-version": "5.14",
"sdk": "org.kde.Sdk",
"command": "qelectrotech",
"rename-desktop-file": "qelectrotech.desktop",
"rename-appdata-file": "qelectrotech",
"rename-icon": "qelectrotech",
"copy-icon": true,
"finish-args": [
"--socket=wayland",
"--socket=x11",
"--device=dri",
"--share=ipc",
"--filesystem=host"
],
"modules": [
{
"name": "qelectrotech",
"buildsystem": "qmake",
"post-install": [
"mv /app/share/mime/packages/qelectrotech.xml /app/share/mime/packages/org.qelectrotech.QElectroTech.xml"
],
"sources": [
{
"type": "dir",
"path": "../.."
},
{
"type": "patch",
"path": "patches/0001-build-Fix-the-installation-paths.patch"
}
]
}
]
}