{
 "app_id": "org.speedynote.SpeedyNote",
 "source_url": "https://raw.githubusercontent.com/flathub/org.speedynote.SpeedyNote/master/org.speedynote.SpeedyNote.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:16:32.159713+00:00",
 "manifest": {
  "app-id": "org.speedynote.SpeedyNote",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "speedynote",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=xdg-documents",
   "--share=network"
  ],
  "cleanup": [
   "/include"
  ],
  "modules": [
   {
    "name": "mupdf",
    "buildsystem": "simple",
    "build-commands": [
     "make \\\n  HAVE_X11=no \\\n  HAVE_GLUT=no \\\n  HAVE_CURL=no \\\n  HAVE_OBJCOPY=no \\\n  USE_SYSTEM_FREETYPE=yes \\\n  USE_SYSTEM_HARFBUZZ=yes \\\n  USE_SYSTEM_LIBJPEG=yes \\\n  USE_SYSTEM_ZLIB=yes \\\n  USE_SYSTEM_OPENJPEG=yes \\\n  USE_SYSTEM_JBIG2DEC=no \\\n  USE_SYSTEM_LCMS2=yes \\\n  USE_SYSTEM_MUJS=no \\\n  USE_SYSTEM_GUMBO=no \\\n  USE_SYSTEM_LEPTONICA=no \\\n  USE_SYSTEM_TESSERACT=no \\\n  shared=yes \\\n  build=release \\\n  libs \\\n  -j${FLATPAK_BUILDER_N_JOBS}",
     "install -d /app/lib /app/include",
     "cp -a build/shared-release/libmupdf.so* /app/lib/",
     "cp -r include/mupdf /app/include/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mupdf.com/downloads/archive/mupdf-1.25.1-source.tar.gz",
      "sha256": "81aa1361252418cc45347b4ac075532096957a7ab772e20e046f3bb418d7263c"
     }
    ]
   },
   {
    "name": "speedynote",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DMUPDF_INCLUDE_DIR=/app/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/alpha-liu-01/SpeedyNote/archive/refs/tags/v1.6.3.tar.gz",
      "sha256": "a26e5a4e18acaa8e37a82489fec3e0ca9f852e6859297cb0306e825bdeb9c019"
     },
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/microsoft/onnxruntime/releases/download/v1.20.1/onnxruntime-linux-x64-1.20.1.tgz",
      "sha256": "67db4dc1561f1e3fd42e619575c82c601ef89849afc7ea85a003abbac1a1a105",
      "dest": "linux/onnxruntime-build",
      "strip-components": 1
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/microsoft/onnxruntime/releases/download/v1.20.1/onnxruntime-linux-aarch64-1.20.1.tgz",
      "sha256": "ae4fedbdc8c18d688c01306b4b50c63de3445cdf2dbd720e01a2fa3810b8106a",
      "dest": "linux/onnxruntime-build",
      "strip-components": 1
     },
     {
      "type": "file",
      "url": "https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.8.0/onnx/PP-OCRv5/rec/latin_PP-OCRv5_rec_mobile.onnx",
      "mirror-urls": [
       "https://huggingface.co/RapidAI/RapidOCR/resolve/v3.8.0/onnx/PP-OCRv5/rec/latin_PP-OCRv5_rec_mobile.onnx"
      ],
      "sha256": "b20bd37c168a570f583afbc8cd7925603890efbcdc000a59e22c269d160b5f5a",
      "dest": "linux/ocr-models",
      "dest-filename": "latin_rec.onnx"
     },
     {
      "type": "file",
      "url": "https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.8.0/onnx/PP-OCRv5/rec/ch_PP-OCRv5_rec_mobile.onnx",
      "mirror-urls": [
       "https://huggingface.co/RapidAI/RapidOCR/resolve/v3.8.0/onnx/PP-OCRv5/rec/ch_PP-OCRv5_rec_mobile.onnx"
      ],
      "sha256": "5825fc7ebf84ae7a412be049820b4d86d77620f204a041697b0494669b1742c5",
      "dest": "linux/ocr-models",
      "dest-filename": "ch_rec.onnx"
     },
     {
      "type": "file",
      "url": "https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.8.0/onnx/PP-OCRv5/rec/korean_PP-OCRv5_rec_mobile.onnx",
      "mirror-urls": [
       "https://huggingface.co/RapidAI/RapidOCR/resolve/v3.8.0/onnx/PP-OCRv5/rec/korean_PP-OCRv5_rec_mobile.onnx"
      ],
      "sha256": "cd6e2ea50f6943ca7271eb8c56a877a5a90720b7047fe9c41a2e541a25773c9b",
      "dest": "linux/ocr-models",
      "dest-filename": "korean_rec.onnx"
     }
    ]
   }
  ]
 }
}