{
 "app_id": "com.github.kmwallio.thiefmd",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.kmwallio.thiefmd/master/com.github.kmwallio.thiefmd.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:07:39.955326+00:00",
 "manifest": {
  "app-id": "com.github.kmwallio.thiefmd",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "com.github.kmwallio.thiefmd",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--filesystem=home",
   "--device=dri",
   "--socket=fallback-x11",
   "--socket=wayland"
  ],
  "cleanup": [
   "/cache",
   "/man",
   "/share/aclocal",
   "/share/devhelp",
   "/lib/systemd",
   "/include",
   "/lib/pkgconfig",
   "/lib/libvala*",
   "/share/gtk-doc",
   "/share/man",
   "/share/vala",
   "/bin/vapi*",
   "*.la",
   "*grammar.a"
  ],
  "modules": [
   "shared-modules/intltool/intltool-0.51.json",
   {
    "name": "libspelling",
    "cleanup": [
     "*.a"
    ],
    "buildsystem": "meson",
    "config-opts": [
     "-Dintrospection=enabled",
     "-Dvapi=true"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/libspelling.git",
      "tag": "0.4.10",
      "commit": "1facdde8e1c0fd72bed806f9a9be2fbec83af5f2"
     }
    ]
   },
   {
    "name": "discount",
    "buildsystem": "simple",
    "cleanup": [
     "*.a"
    ],
    "build-commands": [
     "./configure.sh --prefix=/app --enable-all-features --github-checkbox --with-fenced-code --shared",
     "sed -e 's|/sbin/ldconfig|/sbin/ldconfig -n|' -i librarian.sh",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.pell.portland.or.us/~orc/Code/discount/discount-2.2.7e.tar.bz2",
      "sha256": "82249a3d50a09aac29245990bf9c6139c0ae48707b7dab1268daf851f9db963b"
     }
    ]
   },
   {
    "name": "pandoc-amd64",
    "cleanup": [
     "*.a"
    ],
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mv -v bin/pandoc /app/bin/pandoc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jgm/pandoc/releases/download/3.1.12/pandoc-3.1.12-linux-amd64.tar.gz",
      "sha256": "e30d20cc3f9aefa117bf2183fe74cfc7cb043237d56eb63272b82bf76b537991"
     }
    ]
   },
   {
    "name": "pandoc-arm64",
    "cleanup": [
     "*.a"
    ],
    "only-arches": [
     "aarch64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mv -v bin/pandoc /app/bin/pandoc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jgm/pandoc/releases/download/3.1.12/pandoc-3.1.12-linux-arm64.tar.gz",
      "sha256": "5e27952bee7ddc88e5629bf86252233b418abdf8f7f66c86c412805469afd560"
     }
    ]
   },
   {
    "name": "link-grammar",
    "buildsystem": "simple",
    "build-commands": [
     "./autogen.sh --no-configure",
     "./configure --prefix=/app --disable-python-bindings --disable-java-bindings ",
     "make",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/opencog/link-grammar/archive/refs/tags/link-grammar-5.13.0.tar.gz",
      "sha256": "a545b7efb7aceab2d8ad301466f199778a3da712928999ed8d66deb32ca3184f"
     }
    ]
   },
   {
    "name": "python-setuptools_scm",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py install --prefix=/app --root=/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://pypi.io/packages/source/s/setuptools_scm/setuptools_scm-3.4.3.tar.gz",
      "sha256": "26b8a108783cd88f4b15ff1f0f347d6b476db25d0c226159b835d713f9487320"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's/if not platform_/if not dirs/' setup.py"
      ]
     }
    ]
   },
   "python3-weasyprint.json",
   {
    "name": "thiefmd",
    "cleanup": [
     "*.a"
    ],
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/kmwallio/ThiefMD.git",
      "tag": "v0.3.2",
      "commit": "1af0ae42c04c8489005cd168db92b3c1e400087f"
     }
    ],
    "post-install": [
     "mkdir -p /app/share/icons/hicolor/scalable/apps",
     "mv /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "find /app/share/icons/hicolor -type f -not -path \"*scalable*\" -not -path \"*actions*\" -name \"*.svg\" -delete"
    ]
   }
  ]
 }
}