2023-10-07 00:21:12 +00:00
|
|
|
---
|
|
|
|
app-id: eu.ad5001.LogarithmPlotter
|
|
|
|
runtime: org.kde.Platform
|
2024-01-09 03:53:06 +00:00
|
|
|
runtime-version: '6.6'
|
2023-10-07 00:21:12 +00:00
|
|
|
sdk: org.kde.Sdk
|
|
|
|
finish-args:
|
|
|
|
- "--share=ipc"
|
|
|
|
- "--device=dri"
|
|
|
|
- "--socket=wayland"
|
2023-10-07 00:52:38 +00:00
|
|
|
- "--socket=fallback-x11"
|
2023-10-07 00:21:12 +00:00
|
|
|
- "--talk-name=org.freedesktop.portal.FileChooser"
|
|
|
|
- "--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
|
2024-01-09 03:53:06 +00:00
|
|
|
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
|
2023-10-07 00:21:12 +00:00
|
|
|
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
|
2024-01-09 03:53:06 +00:00
|
|
|
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
|
2023-10-07 00:21:12 +00:00
|
|
|
|
|
|
|
- name: texlive
|
|
|
|
buildsystem: simple
|
|
|
|
build-commands:
|
|
|
|
- install -d /app/texlive
|
|
|
|
|
|
|
|
# Built KDE Depenedencies (included for some reason when built by bot)
|
|
|
|
# - "kf6/qqc2breezestyle.json"
|
|
|
|
# - "kf6/qqc2desktoptheme.json"
|
|
|
|
# - "kf6/qqc2desktoptheme-bare.json"
|
|
|
|
|
|
|
|
- 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.
|
2024-01-09 03:53:06 +00:00
|
|
|
- mkdir -p /app/share/metainfo/
|
2023-10-07 00:21:12 +00:00
|
|
|
- mv eu.ad5001.LogarithmPlotter.metainfo.xml /app/share/metainfo/eu.ad5001.LogarithmPlotter.metainfo.xml
|
2024-01-09 03:53:06 +00:00
|
|
|
# Use new icon (temporary)
|
|
|
|
- cp icon_flatpak.svg logplotter.svg
|
|
|
|
- cp icon_flatpak.svg ./LogarithmPlotter/logarithmplotter.svg
|
|
|
|
# Install
|
2023-10-07 00:21:12 +00:00
|
|
|
- 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.4.0
|
|
|
|
commit: 19e403ce9883e8debd2905e0773b0dba370bffca
|
|
|
|
- type: file
|
|
|
|
path: eu.ad5001.LogarithmPlotter.metainfo.xml
|
2024-01-09 03:53:06 +00:00
|
|
|
- type: file
|
|
|
|
path: icon_flatpak.svg
|
2023-10-07 00:21:12 +00:00
|
|
|
- type: file
|
|
|
|
path: logarithmplotter.desktop
|