{
 "app_id": "net.gwyddion.Gwyddion",
 "source_url": "https://raw.githubusercontent.com/flathub/net.gwyddion.Gwyddion/master/net.gwyddion.Gwyddion.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:13:26.620515+00:00",
 "manifest": {
  "app-id": "net.gwyddion.Gwyddion",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "gwyddion",
  "copy-icon": true,
  "rename-icon": "gwyddion",
  "rename-desktop-file": "gwyddion.desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11"
  ],
  "modules": [
   "shared-modules/pygtk/pygtk.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "gtkglext",
    "rm-configure": true,
    "build-commands": [
     "sed '/AC_PATH_XTRA/d' -i configure.in",
     "./configure --prefix=/app --disable-static",
     "make",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gtkglext/1.2/gtkglext-1.2.0.tar.bz2",
      "sha256": "16bd736074f6b14180f206b7e91263fc721b49912ea3258ab5f094cfa5497f51"
     },
     {
      "type": "patch",
      "path": "patches/gtk2.20.patch"
     },
     {
      "type": "patch",
      "path": "patches/gtkglext-gcc8.patch"
     },
     {
      "type": "patch",
      "path": "patches/no-pangox-taken-from-arch.patch"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "gwyddion",
    "config-opts": [
     "--without-ruby",
     "--with-python"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/gwyddion/files/gwyddion/2.71/gwyddion-2.71.tar.gz",
      "sha256": "6b7c62fa728278dbb37e1542e3cb40a8e39973358937e3c4c1a68973abc5d889",
      "x-checker-data": {
       "type": "html",
       "url": "https://sourceforge.net/projects/gwyddion/rss",
       "pattern": "<link>(https://sourceforge.net/.+/gwyddion-([\\d\\.]+\\d).tar.gz)/download</link>",
       "sort-matches": false
      }
     },
     {
      "type": "file",
      "path": "gwyddion.png"
     },
     {
      "type": "patch",
      "path": "patches/appstream.patch"
     }
    ],
    "post-install": [
     "install -D gwyddion.png /app/share/icons/hicolor/128x128/apps/net.gwyddion.Gwyddion.png"
    ]
   }
  ]
 }
}