{
 "app_id": "systems.tranquil.Map",
 "source_url": "https://raw.githubusercontent.com/flathub/systems.tranquil.Map/master/systems.tranquil.Map.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:17:30.574923+00:00",
 "manifest": {
  "id": "systems.tranquil.Map",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "map",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11"
  ],
  "modules": [
   {
    "name": "map",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/map/cargo",
      "CARGO_NET_OFFLINE": "true"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo build --offline --release --all-features",
     "install -Dm0755 target/release/map ${FLATPAK_DEST}/bin/map",
     "install -Dm0644 resources/logo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm0644 resources/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm0644 resources/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm0644 resources/${FLATPAK_ID}.service ${FLATPAK_DEST}/share/dbus-1/services/${FLATPAK_ID}.service",
     "install -Dm0644 resources/wmap.lang ${FLATPAK_DEST}/share/gtksourceview-5/language-specs/wmap.lang",
     "for po_file in po/*.po; do\n  locale=$(basename \"$po_file\" .po)\n  mkdir -p ${FLATPAK_DEST}/share/locale/${locale}/LC_MESSAGES\n  msgfmt \"$po_file\" -o ${FLATPAK_DEST}/share/locale/${locale}/LC_MESSAGES/${FLATPAK_ID}.mo\ndone\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.sr.ht/~rbdr/map-linux",
      "tag": "1.0.4",
      "commit": "dae5942e2ad1ac59f6217ad0f8e0bd630d0b4747"
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}