{
 "app_id": "io.github.hydrusnetwork.hydrus",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.hydrusnetwork.hydrus/master/io.github.hydrusnetwork.hydrus.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=~/Hydrus:create",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-download",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 15,
 "fetched_at": "2026-09-17T16:11:14.681508+00:00",
 "manifest": {
  "app-id": "io.github.hydrusnetwork.hydrus",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "6.10",
  "command": "hydrus_client",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1"
   ]
  },
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=~/Hydrus:create",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--filesystem=xdg-pictures",
   "--filesystem=xdg-videos",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/etc",
   "/man",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/metatypes",
   "/share/bash-completion",
   "/share/doc",
   "/share/man",
   "/share/zsh"
  ],
  "modules": [
   {
    "name": "mpv",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-date=false",
     "-Dlibmpv=true",
     "-Dcplayer=false",
     "-Dmanpage-build=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mpv-player/mpv/archive/v0.41.0.tar.gz",
      "sha256": "ee21092a5ee427353392360929dc64645c54479aefdb5babc5cfbb5fad626209",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5348,
       "stable-only": true,
       "url-template": "https://github.com/mpv-player/mpv/archive/v$version.tar.gz"
      }
     }
    ],
    "modules": [
     {
      "name": "libplacebo",
      "buildsystem": "meson",
      "config-opts": [
       "-Dd3d11=disabled",
       "-Ddemos=False"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://code.videolan.org/videolan/libplacebo/-/archive/v7.360.1/libplacebo-v7.360.1.tar.gz",
        "sha256": "14c0a99f4b01557ec9826ce6b1d52f6de21be274ba03fd5aab7307f18766dc39",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 20101,
         "stable-only": true,
         "url-template": "https://code.videolan.org/videolan/libplacebo/-/archive/v$version/libplacebo-v$version.tar.gz"
        }
       },
       {
        "type": "archive",
        "url": "https://github.com/pallets/markupsafe/archive/refs/tags/3.0.3.tar.gz",
        "sha256": "f1d9d06c34515dd3ad210ec769da613057b536d11d6c039183b87757a883a254",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 3918,
         "stable-only": true,
         "url-template": "https://github.com/pallets/markupsafe/archive/refs/tags/$version.tar.gz"
        },
        "dest": "3rdparty/markupsafe"
       },
       {
        "type": "archive",
        "url": "https://github.com/pallets/jinja/archive/refs/tags/3.1.6.tar.gz",
        "sha256": "2074b22a72caa65474902234b320d73463d6d4c223ee49f4b433495758356337",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 3894,
         "stable-only": true,
         "url-template": "https://github.com/pallets/jinja/archive/refs/tags/$version.tar.gz"
        },
        "dest": "3rdparty/jinja"
       },
       {
        "type": "archive",
        "url": "https://github.com/Dav1dde/glad/archive/refs/tags/v2.0.8.tar.gz",
        "sha256": "44f06f9195427c7017f5028d0894f57eb216b0a8f7c4eda7ce883732aeb2d0fc",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 300234,
         "stable-only": true,
         "url-template": "https://github.com/Dav1dde/glad/archive/refs/tags/v$version.tar.gz"
        },
        "dest": "3rdparty/glad"
       }
      ]
     },
     {
      "name": "libass",
      "config-opts": [
       "--disable-static"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/libass/libass/releases/download/0.17.5/libass-0.17.5.tar.xz",
        "sha256": "2dca25c0e0c837ddf00b52011b3f82cac1e4ddd3ad018227806b0c2288864acc",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 1560,
         "stable-only": true,
         "url-template": "https://github.com/libass/libass/releases/download/$version/libass-$version.tar.xz"
        }
       }
      ]
     },
     {
      "name": "libXmu",
      "buildsystem": "autotools",
      "sources": [
       {
        "type": "archive",
        "url": "https://xorg.freedesktop.org/releases/individual/lib/libXmu-1.3.1.tar.xz",
        "sha256": "81a99e94c4501e81c427cbaa4a11748b584933e94b7a156830c3621256857bc4",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 1785,
         "stable-only": true,
         "url-template": "https://xorg.freedesktop.org/releases/individual/lib/libXmu-$version.tar.xz"
        }
       }
      ]
     },
     {
      "name": "libXpresent",
      "buildsystem": "autotools",
      "sources": [
       {
        "type": "archive",
        "url": "https://xorg.freedesktop.org/archive/individual/lib/libXpresent-1.0.2.tar.xz",
        "sha256": "4e5b21b4812206a4b223013606ae31170502c1043038777a1ef8f70c09d37602",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 17166,
         "stable-only": true,
         "url-template": "https://xorg.freedesktop.org/archive/individual/lib/libXpresent-$version.tar.xz"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "miniupnpc",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DUPNPC_BUILD_STATIC=FALSE",
     "-DUPNPC_BUILD_SHARED=TRUE",
     "-DUPNPC_BUILD_TESTS=FALSE",
     "-DUPNPC_BUILD_SAMPLE=FALSE"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "d52a0afa614ad6c088cc9ddff1ae7d29c8c595ac5fdd321170a05f41e634bd1a",
      "url": "https://miniupnp.tuxfamily.org/files/miniupnpc-2.3.3.tar.gz",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1986,
       "url-template": "https://miniupnp.tuxfamily.org/files/miniupnpc-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "openblas",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CMAKE_COMMON_ARGS": "-DCMAKE_INSTALL_PREFIX=/app -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DNO_AFFINITY=ON -DUSE_OPENMP=1 -DNUM_THREADS=64 -DDYNAMIC_ARCH=OFF -DDYNAMIC_OLDER=OFF -DBUILD_WITHOUT_LAPACKE=ON"
     }
    },
    "build-commands": [
     "if [ \"${FLATPAK_ARCH}\" = \"x86_64\" ]; then\n  CMAKE_COMMON_ARGS=\"$CMAKE_COMMON_ARGS -DTARGET=CORE2\"\nelif [ \"${FLATPAK_ARCH}\" = \"aarch64\" ]; then\n  CMAKE_COMMON_ARGS=\"$CMAKE_COMMON_ARGS -DTARGET=ARMV8\"\nfi\n\ncmake -B _flatpak_build -S . -G Ninja ${CMAKE_COMMON_ARGS}\nninja -C _flatpak_build\nninja -C _flatpak_build install\n"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.33/OpenBLAS-0.3.33.tar.gz",
      "sha256": "6761af1d9f5d353ab4f0b7497be2643313b36c8f31caec0144bfef198e71e6ab",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2540,
       "url-template": "https://github.com/OpenMathLib/OpenBLAS/releases/download/v$version/OpenBLAS-$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "patches/openblas/dynamic_arch_build_fix.patch"
     }
    ]
   },
   "python3-sources.yaml",
   {
    "name": "python3-scikit_build",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"scikit_build\" --no-build-isolation"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl",
      "sha256": "7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl",
      "sha256": "09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/c3/a3/21b519f58de90d684056c52ec4e45f744cfda7483f082dcc4dd18cc74a93/scikit_build-0.18.1-py3-none-any.whl",
      "sha256": "a6860e300f6807e76f21854163bdb9db16afc74eadf34bd6a9947d3fdfcd725a"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/a9/07/99f2cefae815c66eb23148f15d79ec055429c38fa8986edcc712ab5f3223/setuptools-77.0.3-py3-none-any.whl",
      "sha256": "67122e78221da5cf550ddd04cf8742c8fe12094483749a792d56cd669d6cf58c"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl",
      "sha256": "708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248"
     }
    ]
   },
   {
    "name": "python3-patchelf",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"patchelf\" --no-build-isolation"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/83/ec/ac383eb82792e092d8037649b382cf78a7b79c2ce4e5b861f61519b9b14e/patchelf-0.17.2.1.tar.gz",
      "sha256": "a6eb0dd452ce4127d0d5e1eb26515e39186fa609364274bc1b0b77539cfa7031"
     }
    ]
   },
   {
    "name": "python3-distro",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"distro\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl",
      "sha256": "7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"
     }
    ]
   },
   {
    "name": "python3-build",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"build\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/e2/03/f3c8ba0a6b6e30d7d18c40faab90807c9bb5e9a1e3b2fe2008af624a9c97/build-1.2.1-py3-none-any.whl",
      "sha256": "75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl",
      "sha256": "5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/ae/f3/431b9d5fe7d14af7a32340792ef43b8a714e7726f1d7b69cc4e8e7a3f1d7/pyproject_hooks-1.1.0-py3-none-any.whl",
      "sha256": "7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2"
     }
    ]
   },
   {
    "name": "python3-PyOpenGL",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"PyOpenGL\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/99/48/00e31747821d3fc56faddd00a4725454d1e694a8b67d715cf20f531506a5/PyOpenGL-3.1.7-py3-none-any.whl",
      "sha256": "a6ab19cf290df6101aaf7470843a9c46207789855746399d0af92521a0a92b7a"
     }
    ]
   },
   {
    "name": "pyside6",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm20/bin",
     "append-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "LLVM_INSTALL_DIR": "/usr/lib/sdk/llvm20"
     }
    },
    "cleanup": [
     "/share/PySide6",
     "/bin/pyside6-*",
     "/lib/python*/site-packages/PySide6/scripts"
    ],
    "build-commands": [
     "python3 setup.py build --qtpaths=/usr/bin/qtpaths --ignore-git --parallel=8 --log-level=verbose --no-qt-tools --flatpak",
     "python3 create_wheels.py --build-dir ./build/qfp-*-release",
     "pip install ./dist/*.whl --prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/pyside/pyside-setup.git",
      "tag": "v6.10.1"
     }
    ]
   },
   {
    "name": "hydrus",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 io.github.hydrusnetwork.hydrus.desktop /app/share/applications/io.github.hydrusnetwork.hydrus.desktop",
     "install -Dm644 io.github.hydrusnetwork.hydrus.metainfo.xml /app/share/metainfo/io.github.hydrusnetwork.hydrus.metainfo.xml",
     "install -Dm644 io.github.hydrusnetwork.hydrus.128.png /app/share/icons/hicolor/128x128/apps/io.github.hydrusnetwork.hydrus.png",
     "mkdir -p /app/hydrus",
     "mv * /app/hydrus/",
     "chmod +x /app/hydrus/hydrus_client.py /app/hydrus/hydrus_server.py",
     "ln -s /app/hydrus/hydrus_client.py /app/bin/hydrus_client",
     "ln -s /app/hydrus/hydrus_server.py /app/bin/hydrus_server"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/hydrusnetwork/hydrus.git",
      "tag": "v676",
      "commit": "6038d0680311205497f96dcffedbb6b26d49eeb8",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "release-url-template": "https://github.com/hydrusnetwork/hydrus/releases/tag/v$version",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "assets/icon/io.github.hydrusnetwork.hydrus.128.png"
     },
     {
      "type": "file",
      "path": "assets/io.github.hydrusnetwork.hydrus.desktop"
     },
     {
      "type": "file",
      "path": "io.github.hydrusnetwork.hydrus.metainfo.xml"
     }
    ]
   }
  ]
 }
}