Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eu.cichy1173.tabela #4412

Closed
wants to merge 11 commits into from
Closed
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

.flatpak-builder/

build-dir/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.flatpak-builder/
build-dir/
.flatpak-builder/
build-dir/

60 changes: 60 additions & 0 deletions eu.cichy1173.tabela.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
app-id: eu.cichy1173.tabela
hfiguiere marked this conversation as resolved.
Show resolved Hide resolved
runtime: org.kde.Platform
runtime-version: '6.5'
sdk: org.kde.Sdk
command: tabela
finish-args:
- --share=ipc
- --socket=x11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- --socket=x11
- --socket=wayland
- --socket=fallback-x11

- --device=dri
- --filesystem=home

sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm16
build-options:
append-path: /usr/lib/sdk/llvm16/bin
prepend-ld-library-path: /usr/lib/sdk/llvm16/lib

modules:
- name: qt-include
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-787
buildsystem: simple
build-commands:
- mkdir -p /app/include/qt
- cp -R /usr/include/Qt* /app/include/qt
cleanup:
- /include

- name: PySide6
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/pyside6/PySide6-6.5.1.1-src/pyside-setup-everywhere-src-6.5.1.1.tar.xz
sha256: 9741a06f0b7d4b2168818448134bc7e96ddb5efb846a3915b4177ba4159b5b78
- type: shell
commands:
# use qt-include
- sed -i 's|\(--include-paths=\)|\1/app/include/qt:|' sources/pyside6/cmake/Macros/PySideModules.cmake
# fix python module search path
- sed -i '/--sys-path\b/ a "${pysidebindings_BINARY_DIR}/.."' sources/pyside6/cmake/Macros/PySideModules.cmake
cleanup:
- /plugins
- /include
- /bin
- name: tabela
buildsystem: simple
build-commands:
- python -m pip install --no-deps --no-build-isolation --prefix=/app .
- install -Dm644 data/eu.cichy1173.tabela.desktop -t /app/share/applications
- install -Dm644 data/eu.cichy1173.tabela.metainfo.xml -t /app/share/metainfo
- install -Dm644 data/icons/hicolor/apps/48x48/eu.cichy1173.tabela.png -t /app/share/icons/hicolor/48x48/apps
- install -Dm644 data/icons/hicolor/apps/128x128/eu.cichy1173.tabela.png -t /app/share/icons/hicolor/128x128/apps
sources:
- type: git
url: https://codeberg.org/cichy1173/tabela-flatpak.git
tag: v1.0.9
commit: a44ddfcab595de7887a00a887a78382a9c28d6fa