/ io.github.yggverse.Yoda.yaml
io.github.yggverse.Yoda.yaml
 1  id: "io.github.yggverse.Yoda"
 2  runtime: "org.gnome.Platform"
 3  runtime-version: "48"
 4  sdk: "org.gnome.Sdk"
 5  
 6  sdk-extensions:
 7    - "org.freedesktop.Sdk.Extension.rust-stable"
 8  
 9  command: "Yoda"
10  
11  finish-args:
12    - "--device=dri"
13    - "--share=ipc"
14    - "--share=network"
15    - "--socket=fallback-x11"
16  # - "--socket=pulseaudio"
17    - "--socket=wayland"
18  
19  build-options:
20    append-path: "/usr/lib/sdk/rust-stable/bin"
21    build-args:
22      - "--share=network"
23    env:
24      CARGO_HOME: "/run/build/Yoda/cargo"
25  
26  modules:
27    - name: "libspelling"
28      buildsystem: "meson"
29      config-opts:
30        - "--prefix=/app"
31      cleanup:
32        - "/include"
33        - "/lib/pkgconfig"
34      sources:
35        - type: "archive"
36          url: "https://gitlab.gnome.org/GNOME/libspelling/-/archive/0.4.9/libspelling-0.4.9.tar.gz"
37          sha256: "7fa6185d9fc621b890ef01b2bb7943951dc2ad94d31cbf6e16bc468589571e17"
38  
39    - name: "Yoda"
40      buildsystem: "simple"
41      build-commands:
42        - "cargo build --release"
43      post-install:
44        - "install -Dm755 ./target/release/Yoda -t /app/bin"
45        - "install -Dm644 ./data/${FLATPAK_ID}.desktop -t /app/share/applications"
46        - "install -Dm644 ./data/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/symbolic/apps"
47      sources:
48        - type: "dir"
49          path: "."