id: io.m51.Gelly runtime: org.gnome.Platform runtime-version: "50" sdk: org.gnome.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable command: gelly finish-args: - --socket=wayland - --socket=fallback-x11 - --share=ipc - --device=dri - --share=network - --socket=pulseaudio modules: - name: gelly buildsystem: simple build-options: append-path: /usr/lib/sdk/rust-stable/bin env: CARGO_HOME: /run/build/gelly/cargo CARGO_NET_OFFLINE: "true" LOCALEDIR: /app/share/locale build-commands: - cargo --offline fetch --manifest-path Cargo.toml --verbose - cargo build --offline --release --all-features - for po_file in po/*.po; do lang=$(basename "$po_file" .po); install -dm755 ${FLATPAK_DEST}/share/locale/$lang/LC_MESSAGES; msgfmt -o ${FLATPAK_DEST}/share/locale/$lang/LC_MESSAGES/gelly.mo $po_file; done - install -Dm0755 target/release/gelly ${FLATPAK_DEST}/bin/gelly - install -Dm644 resources/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg - install -Dm644 resources/${FLATPAK_ID}-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg - install -Dm644 resources/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop - install -Dm644 resources/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml - install -Dm644 resources/${FLATPAK_ID}.gschema.xml ${FLATPAK_DEST}/share/glib-2.0/schemas/${FLATPAK_ID}.gschema.xml - glib-compile-schemas ${FLATPAK_DEST}/share/glib-2.0/schemas/ sources: - type: git url: https://github.com/Fingel/gelly.git tag: v1.12.0 commit: 496f337c7c366a313b683715bb710299e537b9d8 - cargo-sources.json