{
 "app_id": "org.sugarlabs.ReadETexts",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sugarlabs.ReadETexts/master/org.sugarlabs.ReadETexts.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:16:42.185863+00:00",
 "manifest": {
  "app-id": "org.sugarlabs.ReadETexts",
  "base": "org.sugarlabs.BaseApp",
  "base-version": "26.04",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "separate-locales": false,
  "command": "sugarapp",
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--env=SUGAR_BUNDLE_ID=org.sugarlabs.ReadETexts",
   "--env=SUGAR_BUNDLE_PATH=/app/share/sugar/activities/ReadETexts.activity/"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/info",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "cleanup-commands": [
   "rm -rf /app/share/gir-1.0"
  ],
  "modules": [
   {
    "name": "espeak-ng",
    "no-parallel-make": true,
    "build-options": {
     "ldflags": "-Wl,--allow-multiple-definition"
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/espeak-ng/espeak-ng.git",
      "tag": "1.51.1",
      "commit": "34762a2b9621d3643e67a00642984c21f0626bdc",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ],
    "post-install": [
     "ln -s /app/lib/libespeak-ng.so /app/lib/libespeak.so",
     "ln -s /app/lib/libespeak-ng.a /app/lib/libespeak.a"
    ]
   },
   {
    "name": "gst-plugins-espeak",
    "no-parallel-make": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sugarlabs/gst-plugins-espeak.git",
      "tag": "v0.6.0",
      "commit": "5cace1227427e25638f2f3447a79528e3c5b6db2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "readetexts",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py install --prefix=${FLATPAK_DEST} --skip-install-desktop-file --skip-install-mime"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sugarlabs/readetexts.git",
      "tag": "v28",
      "commit": "da7fddfaf81b7ba01f22ae6aa3eb7d4ef403c0e6",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/readetexts-port.patch",
       "patches/readetexts-fix-find.patch",
       "patches/readetexts-monitors.patch",
       "patches/readetexts-fix-save.patch",
       "patches/readetexts-info.patch"
      ]
     }
    ],
    "post-install": [
     "sugarapp-gen-mimetypes activity/activity.info mimetypes",
     "sugarapp-gen-appdata activity/activity.info appdata",
     "sugarapp-gen-desktop activity/activity.info desktop --mimetypes mimetypes",
     "install -D mimetypes /app/share/sugar/activities/ReadETexts.activity/activity/mimetypes.xml",
     "install -D mimetypes /app/share/mime/packages/org.sugarlabs.ReadETexts.xml",
     "install -D appdata /app/share/metainfo/org.sugarlabs.ReadETexts.appdata.xml",
     "install -D desktop /app/share/applications/org.sugarlabs.ReadETexts.desktop",
     "install -D activity/read-etexts.svg /app/share/icons/hicolor/scalable/apps/org.sugarlabs.ReadETexts.svg"
    ]
   }
  ]
 }
}