app-id: io.github.kalaksi.Lightkeeper-local base: io.qt.qtwebengine.BaseApp base-version: '6.11' runtime: org.kde.Platform runtime-version: '6.11' sdk: org.kde.Sdk sdk-extensions: # For runtime version 6.11, org.freedesktop.Sdk.Extension.rust-stable/x86_64/25.08 is the appropriate Rust extension. - "org.freedesktop.Sdk.Extension.rust-stable" command: lightkeeper finish-args: - "--share=ipc" - "--socket=fallback-x11" - "--socket=wayland" - "--share=network" - "--device=dri" - "--socket=ssh-auth" - "--talk-name=org.kde.StatusNotifierWatcher" - "--env=SSH_ASKPASS=/app/bin/ksshaskpass" - "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess" cleanup: - /include - /lib/cmake - /lib/*/cmake - /lib/pkgconfig - /mkspecs - /share/man - '*.la' - '*.a' cleanup-commands: - /app/cleanup-BaseApp.sh modules: - name: qmltermwidget buildsystem: qmake sources: - type: git # Fork from repo https://github.com/Swordfish90/qmltermwidget.git to add Qt 6 support. # Follows branch `lightkeeper` url: https://github.com/kalaksi/qmltermwidget.git commit: 10f377653891e7263395c068eb94e46e1bb51ae8 make-install-args: - "INSTALL_ROOT=/app/qmltermwidget" - name: ChartJs2QML buildsystem: simple sources: - type: git url: https://github.com/kalaksi/ChartJs2QML commit: cb1fbcb2618e5172ab0baebfd7a58908d0208fc5 dest: 'ChartJs2QML' build-commands: - rm -rf ChartJs2QML/.git - cp -va ChartJs2QML /app/ChartJs2QML - name: qml-lighthouse-components buildsystem: simple sources: - type: git url: https://github.com/kalaksi/qml-lighthouse-components.git branch: main dest: 'qml-lighthouse-components' build-commands: - cd qml-lighthouse-components/Lighthouse/AceEditor/ace-builds && git sparse-checkout init --no-cone && git sparse-checkout set LICENSE src-min-noconflict && cd ../../../.. - cp -a qml-lighthouse-components /app/qml-lighthouse-components - name: qt6keychain buildsystem: cmake-ninja build-options: config-opts: - "-DBUILD_WITH_QT6=ON" sources: - type: git url: https://github.com/frankosterfeld/qtkeychain.git # 0.15.0 commit: ad7344c45a86a4f66cbafc4b081b5f7b876cb0b7 - name: ksshaskpass buildsystem: cmake-ninja sources: - type: git url: https://invent.kde.org/plasma/ksshaskpass.git # Plasma/6.6 commit: 67c43fee0d003e085b34fdeada468a0a5c8cf92e - name: rsync buildsystem: autotools config-opts: - --disable-md2man - --without-included-zlib sources: - type: archive url: https://download.samba.org/pub/rsync/src/rsync-3.4.1.tar.gz sha256: 2924bcb3a1ed8b551fc101f740b9f0fe0a202b115027647cf69850d65fd88c52 - name: lightkeeper buildsystem: simple sources: - type: dir path: .. - "cargo-sources.json" build-options: append-path: /usr/lib/sdk/rust-stable/bin env: RUSTFLAGS: "--remap-path-prefix =../" CARGO_HOME: /run/build/lightkeeper/cargo build-commands: - cargo --offline fetch --manifest-path Cargo.toml --verbose - cargo --offline build --release --no-default-features --features flatpak --verbose - install -Dm755 ./target/release/lightkeeper -t /app/bin/ - install -Dm644 ./flatpak/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml - install -Dm644 ./flatpak/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop - install -Dm644 ./flatpak/io.github.kalaksi.Lightkeeper-rounded.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png