Hi @damir,
This is how basic manifest looks like:
{
"id": "org.ksnip.ksnip",
"runtime": "org.kde.Platform",
"runtime-version": "5.14",
"sdk": "org.kde.Sdk",
"command": "ksnip",
"rename-icon": "ksnip",
"rename-appdata-file": "ksnip.appdata.xml",
"rename-desktop-file": "ksnip.desktop",
"finish-args": [
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--device=dri"
],
"cleanup": [
"*.a",
"/include",
"/lib/cmake",
"/lib/mkspecs",
"/mkspecs"
],
"modules": [
{
"name": "kColorPicker",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/ksnip/kColorPicker/archive/v0.1.1.tar.gz",
"sha256": "3abecbe2268affee0e725f6a5bd03a249265dcd1d6c535e9f2ba2aa5cc00ac36"
}
]
},
{
"name": "kImageAnnotator",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/ksnip/kImageAnnotator/archive/v0.2.1.tar.gz",
"sha256": "790c4302d56719cf6a05eaf10b2d2baef760fffa29c1a43d0642822526520aed"
}
]
},
{
"name": "ksnip",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
],
"post-install": [
"install -Dm644 /app/share/pixmaps/ksnip.svg /app/share/icons/hicolor/scalable/apps/ksnip.svg"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/ksnip/ksnip/archive/v1.6.1.tar.gz",
"sha256": "3e91a05e2c9eb4994e9a5f3128e8e958b78b4f7660dc4cae0a2f947458f0bd17"
}
]
}
]
}
There are few things that should be fixed before submission:
- Icons, desktop and appdata file need to be renamed to follow reverse DNS notation. I picked
org.ksnip.ksnip
here.
-
PREFIX/share/pixmaps/
is wrong location to install icons. It should be PREFIX/share/icons/hicolor/scalable/apps/
instead.
- Appdata misses
<content_rating>
and <releases>
sections. The former can be generated at https://hughsie.github.io/oars/.
Optionally, make kImageAnnotator and kColorPicker use shared libraries as it can im