mirror of
https://github.com/Ad5001/eu.ad5001.LogarithmPlotter.git
synced 2024-11-16 14:31:36 +00:00
100 lines
4 KiB
JSON
100 lines
4 KiB
JSON
{
|
|
"app-id": "eu.ad5001.LogarithmPlotter",
|
|
"runtime": "org.kde.Platform",
|
|
"runtime-version": "5.15-21.08",
|
|
"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:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux"
|
|
],
|
|
"add-extensions": {
|
|
"org.freedesktop.Sdk.Extension.texlive": {
|
|
"directory": "texlive",
|
|
"version": "21.08"
|
|
}
|
|
},
|
|
"sdk-extensions": ["org.freedesktop.Sdk.Extension.llvm12"],
|
|
"command": "logarithmplotter",
|
|
"rename-desktop-file": "logarithmplotter.desktop",
|
|
"rename-icon": "logplotter",
|
|
"modules": [
|
|
{
|
|
"name": "PySide2",
|
|
"buildsystem": "cmake-ninja",
|
|
"builddir": true,
|
|
"build-options": {
|
|
"prepend-path": "/usr/lib/sdk/llvm12/bin",
|
|
"prepend-ld-library-path": "/usr/lib/sdk/llvm12/lib"
|
|
},
|
|
"config-opts": [
|
|
"-DCMAKE_BUILD_TYPE=Release",
|
|
"-DBUILD_TESTS=OFF"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.15.7-src/pyside-setup-opensource-src-5.15.7.tar.xz",
|
|
"sha256": "f61210ae24e6882d5d0ca0059229e5dc4f35e2bca92dd6caf96c0f41943a8294"
|
|
},
|
|
{
|
|
"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": "texlive",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"install -d /app/texlive"
|
|
]
|
|
},
|
|
{
|
|
"name": "LogarithmPlotter",
|
|
"buildsystem": "simple",
|
|
"build-options": {
|
|
"env": {
|
|
"GIT_ALLOW_PROTOCOL": "file:https:git",
|
|
"MIME_PATH": "/app/share/mime/packages",
|
|
"ICON_PATH": "/app/share/icons/hicolor/scalable/mimetypes",
|
|
"CHANGELOG_PATH": ""
|
|
}
|
|
},
|
|
"build-commands": [
|
|
"rm -rf .git",
|
|
"cd LogarithmPlotter/i18n && bash release.sh",
|
|
"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."
|
|
],
|
|
"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.3.0",
|
|
"commit": "839f8e9f367146a195681c30217f7229eac8c319"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "eu.ad5001.LogarithmPlotter.metainfo.xml"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "logarithmplotter.desktop"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|