{
 "app_id": "io.github.pemsley.coot",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.pemsley.coot/master/io.github.pemsley.coot.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 31,
 "fetched_at": "2026-09-17T16:11:56.654465+00:00",
 "manifest": {
  "app-id": "io.github.pemsley.coot",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "coot",
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--device=dri",
   "--filesystem=home",
   "--share=network",
   "--env=GDK_CORE_DEVICE_EVENTS=1",
   "--env=GDK_DEBUG=gl-prefer-gl",
   "--env=OPENBLAS_MAIN_FREE=1",
   "--env=COOT_PREFIX=/app",
   "--env=CLIBD_MON=/app/share/coot/lib/data/monomers",
   "--env=LIBMOL_ROOT=/app",
   "--env=CCP4=/app",
   "--env=CBIN=/app/bin"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/aclocal",
   "/share/doc",
   "/share/info",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "openblas",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DUSE_OPENMP=ON",
     "-DUSE_THREAD=ON",
     "-DNO_AFFINITY=ON",
     "-DNUM_THREADS=64",
     "-DBUILD_SHARED_LIBS=ON",
     "-DDYNAMIC_ARCH=ON"
    ],
    "post-install": [
     "ln -s /app/lib/libopenblas.so /app/lib/libblas.so",
     "ln -s /app/lib/libopenblas.so /app/lib/liblapack.so"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenMathLib/OpenBLAS/archive/v0.3.29.tar.gz",
      "sha256": "38240eee1b29e2bde47ebb5d61160207dc68668a54cac62c076bb5032013b1eb",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2540,
       "stable-only": true,
       "url-template": "https://github.com/OpenMathLib/OpenBLAS/archive/v$version.tar.gz",
       "versions": {
        "<": "0.3.30"
       }
      }
     }
    ]
   },
   "deps/pypi-dependencies.json",
   {
    "name": "eigen",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/3.4.1/eigen-3.4.1.tar.gz",
      "sha256": "b93c667d1b69265cdb4d9f30ec21f8facbbe8b307cf34c0b9942834c6d4fdbe2",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13751,
       "stable-only": true,
       "url-template": "https://gitlab.com/libeigen/eigen/-/archive/$version/eigen-$version.tar.gz",
       "versions": {
        "<": "4.0.0a0"
       }
      }
     }
    ]
   },
   {
    "name": "gemmi",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DUSE_PYTHON=ON",
     "-DPYTHON_INSTALL_DIR=/app/lib/python3.13/site-packages"
    ],
    "build-options": {
     "cxxflags": "-fPIC -O3"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/project-gemmi/gemmi/archive/refs/tags/v0.7.4.tar.gz",
      "sha256": "58ed9023e0f75033ebec1da630461bc6e1af661f29f0c41deed66c20315ebe2a"
     }
    ]
   },
   {
    "name": "servalcat",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install . \\\n  --verbose \\\n  --no-deps \\\n  --no-index \\\n  --no-build-isolation \\\n  --prefix=${FLATPAK_DEST} \\\n  --config-settings=\"cmake.args=-Dnanobind_DIR=/app/lib/python3.13/site-packages/nanobind/cmake\"\n"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/cd/81/6296c8e438209f49ef7209834a8b7215051b7f5cfaaf257e95d21d6d5605/servalcat-0.4.142.tar.gz",
      "sha256": "37a0ecd8e880abf8fa1ab17584cee077023b29506612622abc21b73aebd5bdd8",
      "x-checker-data": {
       "type": "pypi",
       "name": "servalcat"
      }
     },
     {
      "type": "shell",
      "commands": [
       "rm -rf eigen/"
      ]
     }
    ]
   },
   {
    "name": "acedrg",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_CXX_STANDARD=17",
     "-DPython_EXECUTABLE=/usr/bin/python3",
     "-DPYTHON_VERSION=3",
     "-DPython_SITELIB=/app/lib/python3.13/site-packages"
    ],
    "build-options": {
     "cxxflags": "-fPIC -O3"
    },
    "post-install": [
     "ln -sf /app/libexec/libmol /app/bin/libmol"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://ccp4forge.rc-harwell.ac.uk/ccp4/acedrg.git",
      "tag": "331",
      "commit": "a3af0ff82cb06c3a6da42fb76320c41a8a0dc5ff",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([0-9]+)$"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '/find_package(Python/a set(Python_SITELIB \"/app/lib/python3.13/site-packages\")' CMakeLists.txt",
       "grep -rlIZ --exclude-dir=.git 'ccp4-python' . | xargs -0 sed -i 's/ccp4-python/python/g'"
      ]
     }
    ]
   },
   {
    "name": "fftw2",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-float",
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-fPIC -O3 -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://fftw.org/fftw-2.1.5.tar.gz",
      "sha256": "f8057fae1c7df8b99116783ef3e94a6a44518d49c72e2e630c24b689c6022630"
     },
     {
      "type": "shell",
      "commands": [
       "cp -f /usr/share/libtool/build-aux/config.sub .",
       "cp -f /usr/share/libtool/build-aux/config.guess ."
      ]
     }
    ]
   },
   {
    "name": "mmdb2",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cxxflags": "-O2 -fPIC -fno-strict-aliasing -std=c++11 -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/mmdb2-2.0.22.tar.gz",
      "sha256": "a9646933ce9f34633e1ae4901f2383af0e5318d6490851328f5b6aa06195ab51",
      "x-checker-data": {
       "type": "html",
       "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/",
       "version-pattern": "mmdb2-([\\d\\.]+)\\.tar\\.gz",
       "url-template": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/mmdb2-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libccp4",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-fortran",
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O2 -fPIC -fno-strict-aliasing -DNDEBUG",
     "cxxflags": "-O2 -fPIC -fno-strict-aliasing -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/libccp4-8.0.0.tar.gz",
      "sha256": "cb813ae86612a0866329deab7cee96eac573d81be5b240341d40f9ad5322ff2d",
      "x-checker-data": {
       "type": "html",
       "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/",
       "version-pattern": "libccp4-([\\d\\.]+)\\.tar\\.gz",
       "url-template": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/libccp4-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "cd ccp4 && if ! grep -q '^#include <stdlib.h>' library_utils.c; then sed -i '1i \\#include <stdlib.h>' library_utils.c; fi",
       "cd ccp4 && sed -i -E 's/^[[:space:]]*int[[:space:]]+putenv[[:space:]]*\\([^;]*\\)[[:space:]]*;/extern int putenv(char *);/' library_utils.c"
      ]
     }
    ]
   },
   {
    "name": "clipper",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-mmdb",
     "--enable-ccp4",
     "--enable-cif",
     "--enable-minimol",
     "--enable-cns",
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cxxflags": "-O2 -fno-strict-aliasing -Wno-narrowing -fPIC -std=c++11 -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/clipper-2.1.20180802.tar.gz",
      "sha256": "7c7774f224b59458e0faa104d209da906c129523fa737e81eb3b99ec772b81e0",
      "x-checker-data": {
       "type": "html",
       "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/",
       "version-pattern": "clipper-([\\d\\.]+)\\.tar\\.gz",
       "url-template": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/clipper-$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "patches/clipper-configure-2.patch"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's|libccp4c|ccp4c|g' configure"
      ]
     }
    ]
   },
   {
    "name": "ssm",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-ccp4",
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-fPIC -fno-strict-aliasing -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/ssm-1.4.tar.gz",
      "sha256": "56e7e64ed86d7d9ec59500fd34f26f881bdb9d541916d9a817c3bfb8cf0e9508",
      "x-checker-data": {
       "type": "html",
       "url": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/",
       "version-pattern": "ssm-([\\d\\.]+)\\.tar\\.gz",
       "url-template": "https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/dependencies/ssm-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libgd",
    "buildsystem": "autotools",
    "config-opts": [
     "--without-x",
     "--without-xpm",
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O2 -Wno-error=unused-result -Wno-error=old-style-definition -fPIC -DNDEBUG",
     "cxxflags": "-O2 -Wno-narrowing -fPIC -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.xz",
      "sha256": "3fe822ece20796060af63b7c60acb151e5844204d289da0ce08f8fdf131e5a61",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 880,
       "stable-only": true,
       "url-template": "https://github.com/libgd/libgd/releases/download/gd-$version/libgd-$version.tar.xz"
      }
     },
     {
      "type": "patch",
      "path": "patches/gd.h.patch"
     }
    ]
   },
   {
    "name": "raster3d",
    "buildsystem": "simple",
    "build-options": {
     "cxxflags": "-O2 -fno-strict-aliasing -Wno-narrowing -fPIC -DNDEBUG"
    },
    "build-commands": [
     "make linux",
     "make all",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://www.bmsc.washington.edu/raster3d/Raster3D_3.0-9.tar.gz",
      "sha256": "063edf90f107a57268a69b0801f6b7ff3a358bd596d1d617656611431033fa3a",
      "x-checker-data": {
       "type": "html",
       "url": "http://www.bmsc.washington.edu/raster3d/",
       "version-pattern": "Raster3D_([\\d\\.-]+)\\.tar",
       "url-template": "http://www.bmsc.washington.edu/raster3d/Raster3D_$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "patches/fix-raster3d-Makefile.template.patch"
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --without-icu --with-python=python3.13 --with-python-root=/usr --with-libraries=python,regex,thread,serialization,iostreams,program_options --prefix=/app --libdir=/app/lib",
     "./b2 install --prefix=/app --libdir=/app/lib linkflags=-L/usr/lib python=3.13 -d2 -j$FLATPAK_BUILDER_N_JOBS threading=multi link=shared,static"
    ],
    "build-options": {
     "cflags": "-fPIC -DNDEBUG",
     "cxxflags": "-fPIC -std=c++14 -DNDEBUG"
    },
    "cleanup": [
     "/share/boost"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/boostorg/boost/releases/download/boost-1.92.0/boost-1.92.0-b2-nodocs.tar.xz",
      "sha256": "ea7b982002cc9dfbe59b0b217b206f470dc75f3de0bb2973d844118934d82411",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6845,
       "stable-only": true,
       "url-template": "https://github.com/boostorg/boost/releases/download/boost-$version/boost-$version-b2-nodocs.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libdwarf",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O2 -fno-strict-aliasing -Wno-narrowing -fPIC -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www.prevanders.net/libdwarf-2.3.2.tar.xz",
      "sha256": "7992e7b9019ebfabdda5773e86243517c48cf89fafed3209e853692bc9573efd",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1597,
       "stable-only": true,
       "url-template": "https://www.prevanders.net/libdwarf-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "gsl",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O3 -fPIC -DNDEBUG",
     "ldflags": "-L/app/lib -lopenblas"
    },
    "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": "glm",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGLM_BUILD_TESTS=OFF",
     "-DBUILD_SHARED_LIBS=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/g-truc/glm/archive/refs/tags/1.0.3.tar.gz",
      "sha256": "6775e47231a446fd086d660ecc18bcd076531cfedd912fbd66e576b118607001",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1181,
       "stable-only": true,
       "url-template": "https://github.com/g-truc/glm/archive/refs/tags/$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "bdw-gc",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static"
    ],
    "build-options": {
     "cflags": "-fPIC -O2 -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ivmai/bdwgc/archive/refs/tags/v8.2.12.tar.gz",
      "sha256": "d09001f45dabf1c29a5df3e63020a4bab5ad4aad69137bb07100c717e2ecba0b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 17108,
       "stable-only": true,
       "url-template": "https://github.com/ivmai/bdwgc/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "guile",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-libltdl-prefix=/app",
     "--with-libreadline-prefix=/app",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static"
    ],
    "build-options": {
     "cflags": "-fPIC -O2"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/guile/guile-2.2.7.tar.xz",
      "sha256": "cdf776ea5f29430b1258209630555beea6d2be5481f9da4d64986b077ff37504"
     }
    ]
   },
   {
    "name": "g-wrap",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O2 -fPIC -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://download.savannah.gnu.org/releases/g-wrap/g-wrap-1.9.15.tar.gz",
      "sha256": "0ff6e2700e74b457323726f7c2551a466d8ba44339705f6792d7b533145c602a"
     }
    ]
   },
   {
    "name": "guile-cairo",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O2 -fPIC -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://download.savannah.gnu.org/releases/guile-cairo/guile-cairo-1.10.0.tar.gz",
      "sha256": "ae3d7e0f0a8ae93d0a15c692514eb30f2478d407052064976fc59a291cccdd5c"
     }
    ]
   },
   {
    "name": "guile-lib",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-guile-site=yes",
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--disable-Werror"
    ],
    "build-options": {
     "cflags": "-O2 -fPIC -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://download.savannah.nongnu.org/releases/guile-lib/guile-lib-0.2.7.tar.gz",
      "sha256": "e4ef3b845f121882c7c0cf04f81a1cb8fd360c6f64b56b868de5546214f904de"
     }
    ]
   },
   {
    "name": "guile-gnome-platform",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-debug",
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static"
    ],
    "build-options": {
     "cflags": "-O2 -fPIC -DNDEBUG"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/guile-gnome/guile-gnome-platform/guile-gnome-platform-2.16.5.tar.gz",
      "sha256": "298d8c4f9b567bfe87beda18ed58d047c2e01b88c80895129de5466b921ccebe"
     }
    ]
   },
   {
    "name": "swig",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-docs",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/swig/swig/archive/refs/tags/v4.5.1.tar.gz",
      "sha256": "dd219a0c8947afe63b818892304390427c2ee7f6edfa1a37853d4efd891982be",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6131,
       "stable-only": true,
       "url-template": "https://github.com/swig/swig/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "Catch2",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_CXX_STANDARD=17"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/catchorg/Catch2/archive/refs/tags/v3.16.0.tar.gz",
      "sha256": "0957cae5821b17ce07f0833aaa52b5137643a8382203221f363a8303c109af34",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7680,
       "stable-only": true,
       "url-template": "https://github.com/catchorg/Catch2/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "rdkit",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCatch2_DIR=/app",
     "-DPython_EXECUTABLE=/usr/bin/python3",
     "-DPYTHON_INCLUDE_DIR=/usr/include/python3.13",
     "-DRDK_BUILD_CAIRO_SUPPORT=ON",
     "-DRDK_BUILD_COORDGEN_SUPPORT=ON",
     "-DRDK_BUILD_INCHI_SUPPORT=ON",
     "-DRDK_BUILD_CHEMDRAW_SUPPORT=ON",
     "-DRDK_INSTALL_INTREE=OFF",
     "-DRDK_INSTALL_COMIC_FONTS=OFF",
     "-DRDK_BUILD_MAEPARSER_SUPPORT=OFF"
    ],
    "build-options": {
     "cxxflags": "-fPIC -O3"
    },
    "post-install": [
     "mkdir -p ${FLATPAK_DEST}/include/rdkit/coordgen",
     "cp -a ${FLATPAK_BUILDER_BUILDDIR}/External/CoordGen/coordgen/*.h ${FLATPAK_DEST}/include/rdkit/coordgen/",
     "cp -a ${FLATPAK_BUILDER_BUILDDIR}/External/CoordGen/coordgen/*.hpp ${FLATPAK_DEST}/include/rdkit/coordgen/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/rdkit/rdkit",
      "tag": "Release_2026_03_6",
      "commit": "0e0d85f4ca34aeae15dfc0f7cf5503bdb0a8e985",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^Release_([0-9]+_[0-9]+_[0-9]+)$"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/schrodinger/maeparser/archive/refs/tags/v1.3.1.tar.gz",
      "sha256": "a8d80f67d1b9be6e23b9651cb747f4a3200132e7d878a285119c86bf44568e36",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/schrodinger/coordgenlibs/archive/refs/tags/v3.0.2.tar.gz",
      "sha256": "f67697434f7fec03bca150a6d84ea0e8409f6ec49d5aab43badc5833098ff4e3",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/IUPAC-InChI/InChI/archive/refs/tags/v1.07.3.tar.gz",
      "sha256": "dffe216320fcbd4a230f425416039bdcb5691f930d9e18983d8b5bc18d8410a6",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/rareylab/RingDecomposerLib/archive/refs/tags/v1.1.3_rdkit.tar.gz",
      "sha256": "944b5816712a48bbf88aa25d4300ce11871ddf6e971218eac08f90ed2192f715",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/ncbi/pubchem-align3d/archive/daefab3.tar.gz",
      "sha256": "4871a08104c660890015f27d32a0147fc32df69a8962ca5cd1fe54ef6319c779",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/Tencent/rapidjson/archive/858451e.tar.gz",
      "sha256": "765339356391422ad7f0258f8b746d8010da205762784a84980936e8b38e03ce",
      "strip-components": 0
     },
     {
      "type": "archive",
      "url": "https://github.com/Glysade/chemdraw/archive/refs/tags/v1.0.14.tar.gz",
      "sha256": "bedd75643b9bfaee1663fc41814370ac9329c8d0934e970179929cb355a82aff",
      "strip-components": 0
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/aantron/better-enums/refs/tags/0.11.3/enum.h",
      "sha256": "43a55c487052cfe068ecf1e4496d52128161bfb82c06c343eea85f177f235e04"
     },
     {
      "type": "shell",
      "commands": [
       "mkdir -p External/CoordGen/{maeparser,coordgen}",
       "mkdir -p External/INCHI-API/src",
       "mkdir -p External/RingFamilies/RingDecomposerLib",
       "mkdir -p External/pubchem_shape/pubchem-align3d",
       "mkdir -p External/rapidjson-1.1.0",
       "mkdir -p External/ChemDraw",
       "cp -r maeparser-1.3.1/* External/CoordGen/maeparser",
       "cp -r coordgenlibs-3.0.2/* External/CoordGen/coordgen",
       "cp -r InChI-1.07.3/INCHI-1-SRC/* External/INCHI-API/src",
       "cp -r RingDecomposerLib-1.1.3_rdkit/* External/RingFamilies/RingDecomposerLib",
       "cp -r pubchem-align3d-daefab3dd0c90ca56da9d3d5e375fe4d651e6be3/* External/pubchem_shape/pubchem-align3d",
       "cp -r rapidjson-858451e5b7d1c56cf8f6d58f88cf958351837e53/* External/rapidjson-1.1.0",
       "cp -r chemdraw-1.0.14 External/ChemDraw/chemdraw",
       "cp enum.h Code/RDGeneral",
       "sed -i 's|FetchContent_MakeAvailable(better_enums)||' Code/RDGeneral/CMakeLists.txt"
      ]
     }
    ]
   },
   {
    "name": "netcdf",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DENABLE_HDF5=OFF",
     "-DENABLE_DAP=OFF",
     "-DBUILD_SHARED_LIBS=ON",
     "-DENABLE_TESTS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Unidata/netcdf-c/archive/v4.10.1.tar.gz",
      "sha256": "33c27231c478c3b35da7c7758fbdd02da1fe407abcb16ddfe195f69d164f930d",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10354,
       "stable-only": true,
       "url-template": "https://github.com/Unidata/netcdf-c/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "simdutf",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DSIMDUTF_TESTS=OFF",
     "-DSIMDUTF_BENCHMARKS=OFF",
     "-DSIMDUTF_TOOLS=OFF",
     "-DBUILD_SHARED_LIBS=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/simdutf/simdutf/archive/refs/tags/v9.2.0.tar.gz",
      "sha256": "b4b4f397065bb8f2ba2386feb40e58e27654c71c6f7521d9cbd32a16142bd040",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 378662,
       "stable-only": true,
       "url-template": "https://github.com/simdutf/simdutf/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "fast_float",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DFASTFLOAT_TEST=OFF",
     "-DFASTFLOAT_BENCHMARKS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fastfloat/fast_float/archive/refs/tags/v8.3.0.tar.gz",
      "sha256": "90485994d0fed61d0693e8dba32c464b0e8adf7f2e7c2efbf5bff0df5ef5b13f",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 214353,
       "stable-only": true,
       "url-template": "https://github.com/fastfloat/fast_float/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "vte",
    "buildsystem": "meson",
    "config-opts": [
     "-Dgtk3=false",
     "-Dgtk4=true",
     "-Ddocs=false",
     "-Dglade=false",
     "-Dgir=true",
     "-Dvapi=false",
     "-Dfribidi=true",
     "-Dgnutls=true",
     "-Dicu=true",
     "-D_systemd=true"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.gnome.org/GNOME/vte/-/archive/0.84.1/vte-0.84.1.tar.gz",
      "sha256": "9f73468982a339cd1eb942beb7d348a5564c9ed48473ad1690c791f8474916ec",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10895,
       "stable-only": true,
       "url-template": "https://gitlab.gnome.org/GNOME/vte/-/archive/$version/vte-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "coot",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-boost=/app",
     "--with-boost-libdir=/app/lib",
     "--with-fftw-prefix=/app",
     "--with-gemmi=/app",
     "--with-glm=/app",
     "--with-rdkit-prefix=/app",
     "--with-backward",
     "--with-coordgen",
     "--with-libdw",
     "--with-netcdf",
     "--with-guile",
     "--with-sound",
     "--with-sqlite3",
     "--with-vte",
     "--disable-dependency-tracking",
     "--disable-silent-rules",
     "--enable-shared",
     "--disable-static",
     "--enable-relocatable-binaries"
    ],
    "build-options": {
     "cxxflags": "-g -O1 -fPIC",
     "env": {
      "GLM_CFLAGS": "-I/app/include",
      "GLM_LIBS": "-L/app/lib -lglm"
     }
    },
    "post-install": [
     "cp -r python/ ${FLATPAK_DEST}/share/coot/",
     "install -Dm644 pixmaps/icons/coot.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 coot.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-key=Icon --set-value=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 coot.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/pemsley/coot.git",
      "tag": "Release-1.3.3",
      "commit": "0c588c81865cb6028c7ef33b161a35b33fd1b862",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^Release-([0-9]+(?:\\.[0-9]+)*)$"
      }
     }
    ]
   }
  ]
 }
}