app-id: com.github.sharkdp.Bat runtime: org.freedesktop.Sdk runtime-version: '20.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-1dot50 command: bat separate-locales: false finish-args: - --share=ipc - --filesystem=host build-options: build-args : - --share=network append-path: "/usr/lib/sdk/rust-1dot50/bin" env: CARGO_HOME: "/run/build/bat/cargo" modules: - name: bat buildsystem: simple build-commands: - cargo build - mkdir -p /app/bin - cp target/debug/bat /app/bin sources: - type: archive url: https://github.com/sharkdp/bat/archive/v0.18.0.tar.gz sha256: 49d1b95250050df47753c213b5e48953a029c9e74753cef371051b14c9d629b8 - name: appdata buildsystem: simple build-commands: - mkdir -p ${FLATPAK_DEST}/share/appdata - cp com.github.sharkdp.Bat.appdata.xml ${FLATPAK_DEST}/share/appdata - appstream-compose --basename=com.github.sharkdp.Bat --prefix=${FLATPAK_DEST} --origin=flatpak com.github.sharkdp.Bat sources: - type: file path: com.github.sharkdp.Bat.appdata.xml