eu.ad5001.LogarithmPlotter/eu.ad5001.LogarithmPlotter.yml
2024-09-15 21:09:41 +02:00

95 lines
4.3 KiB
YAML

---
app-id: eu.ad5001.LogarithmPlotter
runtime: org.kde.Platform
runtime-version: '6.7'
sdk: org.kde.Sdk
finish-args:
- "--share=ipc"
- "--device=dri"
- "--socket=wayland"
- "--socket=fallback-x11"
- "--env=PATH=/app/bin:/usr/bin:/app/texlive-bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux"
# Optional Latex extension.
add-extensions:
org.freedesktop.Sdk.Extension.texlive:
directory: texlive
version: '22.08'
command: logarithmplotter
rename-desktop-file: logarithmplotter.desktop
rename-icon: logplotter
modules:
- name: pyside6
buildsystem: simple
build-options:
env:
GIT_ALLOW_PROTOCOL: file:https:git
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} pyside6_essentials --no-build-isolation
- rm -rf ${FLATPAK_DEST}/bin/pyside6-{assistant,designer,linguist,lrelease,lupdate,qmllint}
- rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/{assistant,designer,linguist,lrelease,lupdate,qmllint}
- rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/{examples,Qt/resources}
- rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/qml/QtQuick/Controls/{Imagine,Material,Universal,designer}
- rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/translations/{qtwebengine_locales,linguist*,assistant*,designer*,qtdeclarative*,qt_help*}
- rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/{lib,libexec}
sources:
- type: file
url: https://files.pythonhosted.org/packages/56/65/50d0ced768b717f709a5ab224b648eb533a862efd0cde67d19c2727200b0/PySide6_Essentials-6.6.1-cp38-abi3-manylinux_2_28_x86_64.whl
sha256: c7185616083eab6f42eaed598d97d49fac4f60ae2e7415194140d54f58c2b42c
- type: file
url: https://files.pythonhosted.org/packages/73/28/1313720f3e30304b1fd13aab139ec21f30a01f237e70e631663ddad21fd1/PySide6_Essentials-6.6.1-cp38-abi3-manylinux_2_31_aarch64.whl
sha256: a383c3d60298392cfb621ec1a0cf24b4799321e6c5bbafc021d4cc8076ea1315
modules:
- name: shiboken6
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} shiboken6 --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/47/f0/334bb65c0bf9ed61df642d10722ddb30562bcf7c3b514bec4e51b32dd6ab/shiboken6-6.6.1-cp38-abi3-manylinux_2_31_aarch64.whl
sha256: a605960e72af5eef915991cee7eef4cc72f5cabe63b9ae1a955ceb3d3b0a00b9
- type: file
url: https://files.pythonhosted.org/packages/bb/72/e54f758e49e8da0dcd9490d006c41a814b0e56898ce4ca054d60cdba97bd/shiboken6-6.6.1-cp38-abi3-manylinux_2_28_x86_64.whl
sha256: fb102e4bc210006f0cdd0ce38e1aaaaf792bd871f02a2b3f01d07922c5cf4c59
- 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
# Add metainfo file from current repository.
- mkdir -p /app/share/metainfo/
- mv eu.ad5001.LogarithmPlotter.metainfo.xml /app/share/metainfo/eu.ad5001.LogarithmPlotter.metainfo.xml
# Install
- PREFIX="/app/share" FLATPAK_INSTALL=1 pip3 install --verbose --no-index --prefix=${FLATPAK_DEST} --no-build-isolation --no-deps .
# Copy changelog into the directory needed for it to be cached.
- cp CHANGELOG.md /app/lib/python3.*/site-packages/LogarithmPlotter/util/
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.5.0
commit: 33c790b11326cb8ecb0e0c7e909ccc51b0a59ba3
- type: file
path: eu.ad5001.LogarithmPlotter.metainfo.xml
- type: file
path: logarithmplotter.desktop