{
 "app_id": "au.edu.uq.esys.escript",
 "source_url": "https://raw.githubusercontent.com/flathub/au.edu.uq.esys.escript/master/au.edu.uq.esys.escript.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T16:06:32.304229+00:00",
 "manifest": {
  "app-id": "au.edu.uq.esys.escript",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "run-escript",
  "finish-args": [
   "--filesystem=home",
   "--share=network",
   "--share=ipc",
   "--device=dri",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--env=PATH=/var/data/python/bin:/app/bin:/usr/bin"
  ],
  "modules": [
   {
    "name": "python",
    "builddir": true,
    "buildsystem": "autotools",
    "config-opts": [
     "--exec-prefix=/app",
     "--enable-shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tar.xz",
      "sha256": "afb74bf19130e7a47d10312c8f5e784f24e0527981eab68e20546cfb865830b8"
     }
    ]
   },
   "python3-modules.json",
   {
    "name": "proj",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OSGeo/PROJ.git",
      "tag": "9.4.1",
      "commit": "875a485fa5ef435c57f7682f904dd31ca92253ab"
     }
    ]
   },
   {
    "name": "cython-pyproj",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} cython"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/7f/a2/fd5ced5dd33597ef291861bfadd46820de417b41bcb6ca2fa0b5f6fa8152/Cython-3.0.0.tar.gz",
      "sha256": "350b18f9673e63101dbbfcf774ee2f57c20ac4636d255741d76ca79016b1bd82"
     }
    ]
   },
   {
    "name": "pyproj",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py build",
     "python3 setup.py install --prefix=/app --root=/ --optimize=1"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/pyproj4/pyproj.git",
      "tag": "3.6.1",
      "commit": "0c5159aab8c32488584ae472b3752203f1005559"
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --with-toolset=gcc --with-icu --with-python-version=3.10",
     "./b2 stage --prefix=\"${FLATPAK_DEST}\" --with-python --with-iostreams --with-random variant=release threading=multi link=shared toolset=gcc  debug-symbols=off",
     "./b2 install --prefix=\"${FLATPAK_DEST}\" --with-python --with-iostreams --with-random variant=release  threading=multi link=shared toolset=gcc debug-symbols=off"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.82.0/source/boost_1_82_0.tar.bz2",
      "sha256": "a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6"
     }
    ]
   },
   {
    "name": "hdf5",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_C_FLAGS=\"-DH5_USE_110_API\"",
     "-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON"
    ],
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.1/src/hdf5-1.12.1.tar.bz2",
      "sha256": "aaf9f532b3eda83d3d3adc9f8b40a9b763152218fa45349c3bc77502ca1f8f1c"
     }
    ]
   },
   {
    "name": "netcdf-c",
    "sources": [
     {
      "type": "archive",
      "url": "https://mirror.sobukus.de/files/src/netcdf/netcdf-c-4.9.2.tar.gz",
      "sha256": "cf11babbbdb9963f09f55079e0b019f6d0371f52f8e1264a5ba8e9fdab1a6c48"
     }
    ]
   },
   {
    "name": "netcdf-cxx",
    "sources": [
     {
      "type": "archive",
      "url": "https://mirror.sobukus.de/files/src/netcdf/netcdf-cxx4-4.3.1.tar.gz",
      "sha256": "6a1189a181eed043b5859e15d5c080c30d0e107406fbb212c8fb9814e90f3445"
     }
    ]
   },
   {
    "name": "gmsh",
    "buildsystem": "cmake",
    "config-opts": [
     "-DDEFAULT=0",
     "-DENABLE_BUILD_LIB=1",
     "-DENABLE_POST=1",
     "-DENABLE_PARSER=1"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gmsh.info/src/gmsh-4.11.1-source.tgz",
      "sha256": "c5fe1b7cbd403888a814929f2fd0f5d69e27600222a18c786db5b76e8005b365"
     }
    ]
   },
   {
    "name": "escript",
    "buildsystem": "simple",
    "build-commands": [
     "ln -s /app/lib/python3.10/site-packages/numpy/core/include/numpy /app/include/",
     "ln -s /app/bin/pip.pyz /app/bin/pip",
     "scons options_file=scons/flatpak_options.py umfpack=0 trilinos=0 werror=0 silo=0 cxx_extra='-fPIC -Wno-psabi' -j`nproc --all`"
    ],
    "post-install": [
     "install -Dm644 tools/flatpak/au.edu.uq.esys.escript.png /app/share/icons/hicolor/256x256/apps/au.edu.uq.esys.escript.png",
     "install -Dm644 tools/flatpak/au.edu.uq.esys.escript.desktop /app/share/applications/au.edu.uq.esys.escript.desktop",
     "install -Dm644 au.edu.uq.esys.escript.appdata.xml /app/share/appdata/au.edu.uq.esys.escript.appdata.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/LutzGross/esys-escript.github.io.git",
      "tag": "5.10",
      "commit": "5901b8bf196439f5ff15c780950c1b37e538fc85"
     },
     {
      "type": "patch",
      "path": "flatpak_options.py.patch"
     },
     {
      "type": "file",
      "path": "au.edu.uq.esys.escript.appdata.xml"
     }
    ]
   }
  ]
 }
}