{
 "app_id": "io.github.narunlifescience.AlphaPlot",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.narunlifescience.AlphaPlot/master/io.github.narunlifescience.AlphaPlot.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:11:46.660383+00:00",
 "manifest": {
  "app-id": "io.github.narunlifescience.AlphaPlot",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "alphaplot",
  "rename-icon": "alphaplot",
  "rename-desktop-file": "alphaplot.desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--filesystem=home"
  ],
  "cleanup": [
   "/include",
   "/lib/mkspecs",
   "/lib/pkgconfig",
   "/lib/*/cmake",
   "/lib/*/pkgconfig",
   "/share/aclocal",
   "/share/info",
   "/share/man",
   "*.a",
   "*.la",
   "*.prl"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "gsl",
    "config-opts": [
     "--disable-static"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/gsl/gsl-2.8.tar.gz",
      "sha256": "6a99eeed15632c6354895b1dd542ed5a855c0f15d9ad1326c6fe2b2c9e423190",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1267,
       "stable-only": true,
       "url-template": "https://ftp.gnu.org/gnu/gsl/gsl-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "qt5-qtdatavis3d",
    "buildsystem": "qmake",
    "cleanup": [
     "/bin"
    ],
    "make-install-args": [
     "INSTALL_ROOT=/app/scratchdir"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.qt.io/archive/qt/5.15/5.15.2/submodules/qtdatavis3d-everywhere-src-5.15.2.tar.xz",
      "sha256": "226a6575d573ad78aca459709722c496c23aee526aa0c38eb7c93b0bea1eb6fd"
     }
    ],
    "post-install": [
     "cp -r /app/scratchdir/usr/* /app",
     "rm -rf /app/scratchdir",
     "ln -s /app/lib/*/*.so* /app/lib",
     "sed -e 's@$$QT_MODULE_LIB_BASE@/app/lib@' -i /app/lib/mkspecs/modules/*.pri"
    ]
   },
   {
    "name": "alphaplot",
    "buildsystem": "qmake",
    "build-options": {
     "env": [
      "QMAKEPATH=/app/lib"
     ]
    },
    "config-opts": [
     "INSTALLBASE=/app",
     "QMAKE_LIBDIR+=/app/lib",
     "QMAKE_INCDIR+=/app/include/QtDataVisualization"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/narunlifescience/AlphaPlot.git",
      "tag": "1.02",
      "commit": "8682095ca5aa923249aa4d183d55d4770573131a"
     },
     {
      "type": "patch",
      "path": "patches/metainfo.patch"
     },
     {
      "type": "patch",
      "path": "patches/app-path.patch"
     },
     {
      "type": "patch",
      "path": "patches/icon.patch"
     }
    ],
    "post-install": [
     "install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/data/metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ]
   }
  ]
 }
}