{
 "app_id": "org.hnefatafl.hnefatafl_client",
 "source_url": "https://raw.githubusercontent.com/flathub/org.hnefatafl.hnefatafl_client/master/org.hnefatafl.hnefatafl_client.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:15:16.413189+00:00",
 "manifest": {
  "app-id": "org.hnefatafl.hnefatafl_client",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "org.hnefatafl.hnefatafl_client",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm22"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=pulseaudio",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=network"
  ],
  "modules": [
   {
    "name": "hnefatafl_client",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://codeberg.org/dcampbell/hnefatafl.git",
      "commit": "4079bac71ef85b65ff24261d866ca28b5b1748e5",
      "tag": "v6.4.1"
     },
     "cargo-sources.json"
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm22/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm22/lib",
     "env": {
      "CARGO_HOME": "/run/build/hnefatafl_client/cargo",
      "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER": "clang",
      "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",
      "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER": "clang",
      "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold"
     }
    },
    "build-commands": [
     "sed -i 's/cargo-/flathub-/' src/lib.rs",
     "source /usr/lib/sdk/rust-stable/enable.sh && cargo --offline build --release --bin hnefatafl-client --features client,icon_2 --no-default-features",
     "install -Dm755 target/release/hnefatafl-client /app/bin/$FLATPAK_ID",
     "install -Dm644 website/src/images/helmet.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "install -Dm644 packages/$FLATPAK_ID.desktop -t /app/share/applications",
     "install -Dm644 packages/$FLATPAK_ID.metainfo.xml -t /app/share/metainfo"
    ]
   }
  ]
 }
}