{
 "app_id": "dev.geopjr.Collision",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.geopjr.Collision/master/dev.geopjr.Collision.yaml",
 "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:09:38.285478+00:00",
 "manifest": {
  "app-id": "dev.geopjr.Collision",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "collision",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri"
  ],
  "modules": [
   {
    "name": "collision",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/run/build/collision/crystal/bin/"
    },
    "build-commands": [
     "sed -i 's/{{ `shards version \"#{__DIR__}\"`.strip.stringify }}/{{read_file(\"#{__DIR__}\\/..\\/..\\/shard.yml\").split(\"version: \")[1].split(\"\\\\n\")[0]}}/' ./lib/gi-crystal/src/generator/main.cr",
     "for i in ./lib/*/; do ln -snf \"..\" \"$i/lib\"; done",
     "cd lib/gi-crystal && crystal build src/generator/main.cr && cd ../.. && mkdir ./bin && cp lib/gi-crystal/main ./bin/gi-crystal",
     "./bin/gi-crystal",
     "COLLISION_LOCALE_LOCATION=\"/app/share/locale\" crystal/bin/crystal build ./src/collision.cr -Dpreview_mt -Dexecution_context --no-debug --release",
     "msgfmt --xml --template data/dev.geopjr.Collision.metainfo.xml.in -d \"./po\" -o data/dev.geopjr.Collision.metainfo.xml",
     "msgfmt --desktop --template data/dev.geopjr.Collision.desktop.in -d \"./po\" -o data/dev.geopjr.Collision.desktop",
     "mkdir -p po/mo && for lang in `cat \"po/LINGUAS\"`; do if [[ \"$lang\" == 'en' || \"$lang\" == '' ]]; then continue; fi; mkdir -p \"/app/share/locale/$lang/LC_MESSAGES\"; msgfmt \"po/$lang.po\" -o \"po/mo/$lang.mo\";  install -D -m 0644 \"po/mo/$lang.mo\" \"/app/share/locale/$lang/LC_MESSAGES/dev.geopjr.Collision.mo\"; done"
    ],
    "post-install": [
     "install -D -m 0755 collision /app/bin/collision",
     "install -D -m 0644 data/dev.geopjr.Collision.desktop /app/share/applications/dev.geopjr.Collision.desktop",
     "install -D -m 0644 data/icons/dev.geopjr.Collision.svg /app/share/icons/hicolor/scalable/apps/dev.geopjr.Collision.svg",
     "install -D -m 0644 data/icons/dev.geopjr.Collision-symbolic.svg /app/share/icons/hicolor/symbolic/apps/dev.geopjr.Collision-symbolic.svg",
     "install -D -m 0644 data/dev.geopjr.Collision.metainfo.xml /app/share/metainfo/dev.geopjr.Collision.metainfo.xml",
     "install -D -m 0644 data/dev.geopjr.Collision.gschema.xml /app/share/glib-2.0/schemas/dev.geopjr.Collision.gschema.xml",
     "glib-compile-schemas /app/share/glib-2.0/schemas"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://codeberg.org/GeopJr/Collision.git",
      "tag": "v3.14.1",
      "commit": "9d35ba01750b24cdf70512b08914c0961f008c59",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "archive",
      "dest": "crystal/",
      "url": "https://github.com/crystal-lang/crystal/releases/download/1.20.1/crystal-1.20.1-1-linux-x86_64.tar.gz",
      "sha256": "62c4c81269870db859929374b3f32d39c24a9a9a19ee6d10134ffe8a850bebe9",
      "only_arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "dest": "crystal/",
      "url": "https://github.com/geopjr-forks/crystal-aarch64/releases/download/v1.18.2/crystal-1.18.2-1-linux-aarch64.tar.xz",
      "sha256": "1d7f787247491a092f3a6812243af4c6730c00722400c314782a801d32eb9a49",
      "only_arches": [
       "aarch64"
      ]
     },
     {
      "type": "git",
      "url": "https://github.com/geopjr/blake3.cr.git",
      "tag": "v1.4.0",
      "dest": "lib/blake3"
     },
     {
      "type": "git",
      "url": "https://github.com/geopjr/gettext.cr.git",
      "tag": "v1.0.0",
      "dest": "lib/gettext"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/gi-crystal.git",
      "tag": "v0.25.1",
      "dest": "lib/gi-crystal"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/gtk4.cr.git",
      "tag": "v0.18.0",
      "dest": "lib/gtk4"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/harfbuzz.cr.git",
      "tag": "v0.2.1",
      "dest": "lib/harfbuzz"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/libadwaita.cr.git",
      "tag": "v0.1.0",
      "dest": "lib/libadwaita"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/pango.cr.git",
      "tag": "v0.3.1",
      "dest": "lib/pango"
     }
    ]
   }
  ]
 }
}