# SPDX-License-Identifier: MIT # Flatpak manifest. The GNOME runtime has GTK 4, curl and libarchive but not the C++ bindings, # so the gtkmm stack is built here (versions matching the runtime's GLib / GTK / Pango). # # flatpak-builder --user --install --force-clean build-flatpak packaging/flatpak/io.github.openpu.OpenPU.yml id: io.github.openpu.OpenPU runtime: org.gnome.Platform runtime-version: '51' sdk: org.gnome.Sdk command: openpu # Keep the translations in the app: a single-file bundle does not carry the .Locale extension. separate-locales: false finish-args: - --share=network # Majestic API and downloads - --share=ipc - --socket=wayland - --socket=fallback-x11 - --device=dri # Formatting, mounting and ejecting the USB stick go through UDisks2 (polkit asks the user). - --system-talk-name=org.freedesktop.UDisks2 # Default download folder, and the mount points UDisks2 uses for the stick. - --filesystem=xdg-download - --filesystem=/media - --filesystem=/run/media cleanup: - /include - /lib/pkgconfig - /lib/cmake # configuration headers of the bindings (not the libraries themselves) - /lib/sigc++-3.0 - /lib/cairomm-1.16 - /lib/glibmm-2.68 - /lib/giomm-2.68 - /lib/pangomm-2.48 - /lib/gtkmm-4.0 - /share/pkgconfig - /share/doc - /share/devhelp - '*.la' - '*.a' modules: - name: nlohmann-json buildsystem: cmake-ninja config-opts: - -DJSON_BuildTests=OFF sources: - type: archive url: https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz sha256: 42f6e95cad6ec532fd372391373363b62a14af6d771056dbfc86160e6dfff7aa - name: libsigc++ buildsystem: meson config-opts: [-Dbuild-documentation=false, -Dbuild-examples=false, -Dbuild-tests=false, -Dvalidation=false] sources: - type: archive url: https://download.gnome.org/sources/libsigc++/3.6/libsigc++-3.6.0.tar.xz sha256: c3d23b37dfd6e39f2e09f091b77b1541fbfa17c4f0b6bf5c89baef7229080e17 - name: cairomm buildsystem: meson config-opts: [-Dbuild-documentation=false, -Dbuild-examples=false, -Dbuild-tests=false] sources: - type: archive url: https://www.cairographics.org/releases/cairomm-1.18.0.tar.xz sha256: b81255394e3ea8e8aa887276d22afa8985fc8daef60692eb2407d23049f03cfb - name: glibmm buildsystem: meson config-opts: [-Dbuild-documentation=false, -Dbuild-examples=false] sources: - type: archive url: https://download.gnome.org/sources/glibmm/2.90/glibmm-2.90.0.tar.xz sha256: e2efa45643f16b9fea2d6299f2f403d672eaeacddf0ff7f8094e1af9b0f5980b - name: pangomm buildsystem: meson config-opts: [-Dbuild-documentation=false] sources: - type: archive url: https://download.gnome.org/sources/pangomm/2.58/pangomm-2.58.0.tar.xz sha256: 217514c1a65035c2fce6e69e33b0d92bafa2594cc474e995a4473441b10f3a33 - name: gtkmm buildsystem: meson config-opts: [-Dbuild-documentation=false, -Dbuild-demos=false, -Dbuild-tests=false] sources: - type: archive url: https://download.gnome.org/sources/gtkmm/4.24/gtkmm-4.24.0.tar.xz sha256: 7fd9cea356e7d3b74bf7d2a51d7e0e6763f3f9f1cddc5e77c8b0b5b7fa9d5e5a - name: openpu buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DOPENPU_UI_GTK=ON - -DOPENPU_BUILD_TESTS=OFF sources: - type: dir path: ../..