2021-09-22 12:04:46 +00:00
{
"app-id" : "eu.ad5001.LogarithmPlotter" ,
"runtime" : "org.kde.Platform" ,
2022-04-22 15:52:39 +00:00
"runtime-version" : "5.15-21.08" ,
2021-09-22 12:04:46 +00:00
"sdk" : "org.kde.Sdk" ,
"finish-args" : [
"--share=ipc" ,
"--device=dri" ,
2021-10-01 16:13:55 +00:00
"--socket=fallback-x11" ,
2021-09-22 12:04:46 +00:00
"--socket=wayland" ,
2022-03-08 18:49:28 +00:00
"--filesystem=home" ,
2022-04-22 15:52:39 +00:00
"--env=PATH=/app/bin:/usr/bin:/app/texlive-bin:/app/texlive/bin"
2021-09-22 12:04:46 +00:00
] ,
2022-03-08 18:49:28 +00:00
"add-extensions" : {
"org.freedesktop.Sdk.Extension.texlive" : {
"directory" : "texlive" ,
2022-04-22 15:52:39 +00:00
"version" : "21.08" ,
2022-03-08 18:49:28 +00:00
"no-autodownload" : true ,
"autodelete" : false
}
} ,
2022-04-22 15:52:39 +00:00
"sdk-extensions" : [ "org.freedesktop.Sdk.Extension.llvm12" ] ,
2021-09-22 12:04:46 +00:00
"command" : "logarithmplotter" ,
"rename-desktop-file" : "logarithmplotter.desktop" ,
"rename-icon" : "logplotter" ,
"modules" : [
2021-10-01 16:21:29 +00:00
{
"name" : "PySide2" ,
"buildsystem" : "cmake-ninja" ,
"builddir" : true ,
2022-04-22 15:52:39 +00:00
"build-options" : {
"prepend-path" : "/usr/lib/sdk/llvm12/bin" ,
"prepend-ld-library-path" : "/usr/lib/sdk/llvm12/lib"
} ,
2021-10-01 16:21:29 +00:00
"config-opts" : [
"-DCMAKE_BUILD_TYPE=Release" ,
"-DBUILD_TESTS=OFF"
] ,
"sources" : [
{
"type" : "archive" ,
2022-04-22 15:52:39 +00:00
"url" : "https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.3-src/pyside-setup-opensource-src-5.15.3.tar.xz" ,
"sha256" : "7ff5f1cc4291fffb6d5a3098b3090abe4d415da2adec740b4e901893d95d7137"
2021-10-01 16:21:29 +00:00
} ,
{
"type" : "shell" ,
"commands" : [
"mkdir -p /app/include/qt5tmp && cp -R /usr/include/Qt* /app/include/qt5tmp # https://bugreports.qt.io/broswse/PYSIDE-787" ,
"sed -i 's|--include-paths=|--include-paths=/app/include/qt5tmp:|' sources/pyside2/cmake/Macros/PySideModules.cmake"
]
}
]
} ,
2021-09-22 12:04:46 +00:00
{
"name" : "LogarithmPlotter" ,
"buildsystem" : "simple" ,
2022-04-22 17:11:49 +00:00
"build-options" : {
"env" : {
"MIME_PATH" : "/app/share/mime/packages" ,
2022-04-22 21:59:31 +00:00
"ICON_PATH" : "/app/share/icons/hicolor/scalable/mimetypes" ,
"CHANGELOG_PATH" : ""
2022-04-22 17:11:49 +00:00
}
} ,
2021-09-22 12:04:46 +00:00
"build-commands" : [
2021-10-01 15:28:18 +00:00
"rm -rf .git" ,
2022-01-21 10:44:10 +00:00
"cd LogarithmPlotter/i18n && bash release.sh" ,
2022-03-08 18:49:28 +00:00
"mv eu.ad5001.LogarithmPlotter.metainfo.xml linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml # Add metainfo file from current repository." ,
2022-04-22 21:59:31 +00:00
"PREFIX=\"/app/share\" FLATPAK_INSTALL=1 python3 setup.py install --prefix=/app" ,
"cp CHANGELOG.md /app/lib/python3.*/site-packages/logarithmplotter-*-py3.*.egg/LogarithmPlotter/util/ # Copy changelog into the directory needed for it to be cached."
2021-09-22 12:04:46 +00:00
] ,
2021-10-01 16:21:29 +00:00
"post-install" : [
2022-03-08 18:49:28 +00:00
"mv ${MIME_PATH}/x-logarithm-plot.xml ${MIME_PATH}/eu.ad5001.LogarithmPlotter-x-logarithm-plot.xml" ,
2022-04-22 15:52:39 +00:00
"sed -i 's/application-x-logarithm-plot/eu.ad5001.LogarithmPlotter-application-x-logarithm-plot/g' ${MIME_PATH}/eu.ad5001.LogarithmPlotter-x-logarithm-plot.xml" ,
2022-03-08 18:49:28 +00:00
"mv ${ICON_PATH}/application-x-logarithm-plot.svg ${ICON_PATH}/eu.ad5001.LogarithmPlotter-x-logarithm-plot.svg"
2021-10-01 16:21:29 +00:00
] ,
2021-09-22 12:04:46 +00:00
"sources" : [
{
"type" : "git" ,
"url" : "https://git.ad5001.eu/Ad5001/LogarithmPlotter" ,
2022-04-22 15:52:39 +00:00
"tag" : "v0.2.0" ,
"commit" : "cb733a556cae1751920d03c480627b44e3833ac7"
2022-03-08 18:49:28 +00:00
} ,
{
"type" : "file" ,
"path" : "eu.ad5001.LogarithmPlotter.metainfo.xml"
2021-09-22 12:04:46 +00:00
}
]
}
]
}