eu.ad5001.LogarithmPlotter/eu.ad5001.LogarithmPlotter.json

83 lines
3.4 KiB
JSON

{
"app-id": "eu.ad5001.LogarithmPlotter",
"runtime": "org.kde.Platform",
"runtime-version": "5.15",
"sdk": "org.kde.Sdk",
"finish-args": [
"--share=ipc",
"--device=dri",
"--socket=fallback-x11",
"--socket=wayland",
"--filesystem=home",
"--env=PATH=/app/bin:/usr/bin:/app/texlive-bin:/app/texlive/bin",
],
"add-extensions": {
"org.freedesktop.Sdk.Extension.texlive": {
"directory": "texlive",
"version": "20.08",
"no-autodownload": true,
"autodelete": false
}
},
"command": "logarithmplotter",
"rename-desktop-file": "logarithmplotter.desktop",
"rename-icon": "logplotter",
"modules": [
{
"name": "PySide2",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release",
"-DBUILD_TESTS=OFF"
],
"sources": [
{
"type": "archive",
"url": "https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.2-src/pyside-setup-opensource-src-5.15.2.tar.xz",
"sha256": "b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418"
},
{
"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"
]
}
]
},
{
"name": "LogarithmPlotter",
"buildsystem": "simple",
"build-commands": [
"rm -rf .git",
"cd LogarithmPlotter/i18n && bash release.sh",
"mv eu.ad5001.LogarithmPlotter.metainfo.xml linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml # Add metainfo file from current repository.",
"cp CHANGELOG.md LogarithmPlotter/ # Copy changelog into the directory.",
"PREFIX=\"/app/share\" FLATPAK_INSTALL=1 python3 setup.py install --prefix=/app"
],
"env": {
"MIME_PATH": "/app/share/mime/packages",
"ICON_PATH": "/app/share/icons/hicolor/scalable/mimetypes",
},
"post-install": [
"mv ${MIME_PATH}/x-logarithm-plot.xml ${MIME_PATH}/eu.ad5001.LogarithmPlotter-x-logarithm-plot.xml",
"sed -i 's/application-x-logarithm-plot/eu.ad5001.LogarithmPlotter-application-x-logarithm-plot/g' ${MIME_PATH}/eu.ad5001.LogarithmPlotter-x-logarithm-plot.xml"
"mv ${ICON_PATH}/application-x-logarithm-plot.svg ${ICON_PATH}/eu.ad5001.LogarithmPlotter-x-logarithm-plot.svg"
],
"sources": [
{
"type": "git",
"url": "https://git.ad5001.eu/Ad5001/LogarithmPlotter",
"tag": "v0.1.8",
"commit": "d34701b9804b5dabd01104d98c5706d284098f1d"
},
{
"type": "file",
"path": "eu.ad5001.LogarithmPlotter.metainfo.xml"
}
]
}
]
}