{
 "app_id": "net.sourceforge.ddrescueview",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.ddrescueview/master/net.sourceforge.ddrescueview.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--filesystem=xdg-documents"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:46.577711+00:00",
 "manifest": {
  "app-id": "net.sourceforge.ddrescueview",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.freepascal"
  ],
  "command": "ddrescueview",
  "rename-icon": "ddrescueview",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--filesystem=xdg-documents"
  ],
  "modules": [
   "shared-modules/gtk2/gtk2.json",
   {
    "name": "ddrescueview",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/project/ddrescueview/Test%20builds/v0.4.5/ddrescueview-source-0.4.5.tar.xz",
      "sha256": "57383c394e62612ce2a799438b00c6e3c465c31f9ba940e077f624e2e7028465",
      "x-checker-data": {
       "type": "json",
       "url": "https://sourceforge.net/projects/ddrescueview/best_release.json",
       "url-query": "[.platform_releases[] | select(.filename | test(\"ddrescueview-source-.*\"))] | first | .url | split(\"?\") | first",
       "date-query": "[.platform_releases[] | select(.filename | test(\"ddrescueview-source-.*\"))] | first | .date",
       "version-query": "[.platform_releases[] | select(.filename | test(\"ddrescueview-source-.*\"))] | first | .filename | capture(\".*\\/v(?<v>[0-9.]+)\\/.*\") | .v"
      }
     },
     {
      "type": "patch",
      "path": "gtk3_alpha.diff"
     },
     {
      "type": "file",
      "path": "net.sourceforge.ddrescueview.metainfo.xml"
     }
    ],
    "build-commands": [
     ". /usr/lib/sdk/freepascal/enable.sh\nlazbuild --widgetset=gtk3 source/ddrescueview.lpi\ncp source/ddrescueview source/ddrescueview-gtk3\nlazbuild source/ddrescueview.lpi\n",
     "install -Dm755 source/ddrescueview -t ${FLATPAK_DEST}/bin",
     "install -Dm755 source/ddrescueview-gtk3 -t ${FLATPAK_DEST}/bin",
     "install -Dm644 resources/linux/applications/ddrescueview.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 net.sourceforge.ddrescueview.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "cp -R resources/linux/icons/ ${FLATPAK_DEST}/share/icons/"
    ]
   }
  ]
 }
}