{
 "app_id": "io.github.hugopl.rtfm",
 "source_url": "https://raw.githubusercontent.com/hugopl/rtfm/main/data/io.github.hugopl.rtfm.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "44",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T18:03:35.576545+00:00",
 "manifest": {
  "app-id": "io.github.hugopl.rtfm",
  "runtime": "org.gnome.Platform",
  "runtime-version": "44",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.gnome.Sdk.Docs"
  ],
  "command": "rtfm",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "livevent",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libevent/libevent.git",
      "tag": "release-2.1.12-stable"
     }
    ]
   },
   {
    "name": "libyaml",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz",
      "sha256": "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
     }
    ]
   },
   {
    "name": "rtfm",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/run/build/rtfm/crystal/bin/"
    },
    "build-commands": [
     "mv ./crystal-docs/crystal-*-docs/ ./crystal-docs/docs/",
     "crystal run src/create_crystal_docset.cr -- ./crystal-docs/docs/",
     "crystal run src/create_gtk_docset.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",
     "crystal build ./src/main.cr -o rtfm"
    ],
    "post-install": [
     "mkdir -p /app/share/rtfm/docsets/ && cp -rv data/*.docset /app/share/rtfm/docsets/",
     "install -D -m 0755 rtfm /app/bin/rtfm",
     "install -D -m 0644 data/io.github.hugopl.rtfm.desktop /app/share/applications/io.github.hugopl.rtfm.desktop",
     "install -D -m 0644 data/icons/hicolor/scalable/apps/io.github.hugopl.rtfm.svg /app/share/icons/hicolor/scalable/apps/io.github.hugopl.rtfm.svg",
     "install -D -m 0644 data/io.github.hugopl.rtfm.metainfo.xml /app/share/metainfo/io.github.hugopl.rtfm.metainfo.xml",
     "install -D -m 0644 data/io.github.hugopl.rtfm.gschema.xml /app/share/glib-2.0/schemas/io.github.hugopl.rtfm.gschema.xml",
     "glib-compile-schemas /app/share/glib-2.0/schemas"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "..",
      "skip": [
       ".rucksack",
       ".rucksack.toc",
       "lib/",
       "rtfm",
       "bin/",
       "data/io.github.hugopl.rtfm.gresource",
       "po/mo/"
      ]
     },
     {
      "type": "archive",
      "dest": "crystal/",
      "url": "https://github.com/crystal-lang/crystal/releases/download/1.9.2/crystal-1.9.2-1-linux-x86_64.tar.gz",
      "sha256": "2dcfa020763998550904d6d8ea3eb178a1d93e8d7fea0f61d8c80c2b8fce9e24",
      "only_arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "dest": "crystal/",
      "url": "https://github.com/geopjr-forks/crystal-aarch64/releases/download/v1.9.1/crystal-1.9.1-1-linux-aarch64.tar.xz",
      "sha256": "522d1a48d51db0398fa7bff06af74c186fe7da469bddcce9587de3013162496b",
      "only_arches": [
       "aarch64"
      ]
     },
     {
      "type": "archive",
      "dest": "crystal-docs/",
      "url": "https://github.com/crystal-lang/crystal/releases/download/1.9.2/crystal-1.9.2-docs.tar.gz",
      "sha256": "53b0a856605530d60fd864f647929434ea1e7a6a51420c0cf0ae6ebbe1082924"
     },
     {
      "type": "git",
      "url": "https://github.com/crystal-lang/crystal-db.git",
      "tag": "v0.12.0",
      "dest": "lib/db"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/fzy.git",
      "tag": "v0.5.5",
      "dest": "lib/fzy"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/gi-crystal.git",
      "tag": "v0.17.0",
      "dest": "lib/gi-crystal"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/gio.cr.git",
      "tag": "v0.1.0",
      "dest": "lib/gio"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/gtk4.cr.git",
      "tag": "v0.15.0",
      "dest": "lib/gtk4"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/harfbuzz.cr.git",
      "tag": "v0.2.0",
      "dest": "lib/harfbuzz"
     },
     {
      "type": "git",
      "url": "https://github.com/geopjr/libadwaita.cr.git",
      "commit": "23ce21d6400af7563ede0b53deea6d1f77436985",
      "dest": "lib/libadwaita"
     },
     {
      "type": "git",
      "url": "https://github.com/hugopl/pango.cr.git",
      "tag": "v0.2.0",
      "dest": "lib/pango"
     },
     {
      "type": "git",
      "url": "https://github.com/crystal-lang/crystal-sqlite3.git",
      "tag": "v0.20.0",
      "dest": "lib/sqlite3"
     }
    ]
   }
  ]
 }
}