{
 "app_id": "io.github.xiaoyifang.goldendict_ng",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.xiaoyifang.goldendict_ng/master/io.github.xiaoyifang.goldendict_ng.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:12:35.930755+00:00",
 "manifest": {
  "app-id": "io.github.xiaoyifang.goldendict_ng",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "goldendict",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "6.10",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--socket=pulseaudio",
   "--share=network",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "modules": [
   {
    "name": "opencc",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/BYVoid/OpenCC.git",
      "tag": "ver.1.4.2",
      "commit": "025f371dc76b598d77384fbdab90c937471844d8",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^ver.([\\d.]+)$",
       "version-scheme": "semantic"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i '1i #include <cstdint>' src/SerializedValues.hpp"
      ]
     }
    ]
   },
   {
    "name": "eb",
    "config-opts": [
     "--enable-shared",
     "--disable-static"
    ],
    "cleanup": [
     "/bin",
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://salsa.debian.org/debian/eb/-/archive/debian/4.4.3-14.4/eb-debian-4.4.3-14.4.tar.gz",
      "sha256": "7c907e159d735aaaa5b270abb9f8baaf3d0bb32591f23bd1fe39f76d79c60e77",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 155542,
       "stable-only": false,
       "url-template": "https://salsa.debian.org/debian/eb/-/archive/debian/$version/eb-debian-$version.tar.gz"
      }
     },
     {
      "type": "shell",
      "commands": [
       "git apply debian/patches/0002-gcc14-fix.patch",
       "find . -name getopt.c -exec sed -i '/extern char \\*getenv();/d' {} +",
       "cp -p /usr/share/automake-*/config.{sub,guess} ."
      ]
     }
    ]
   },
   {
    "name": "xapian-core",
    "config-opts": [
     "--disable-sse",
     "--disable-backend-chert",
     "--disable-backend-remote",
     "--disable-documentation"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://oligarchy.co.uk/xapian/2.1.0/xapian-core-2.1.0.tar.xz",
      "sha256": "8e1259586d342e3d12b5e1f772e9185a10f2ba16e541566b5c3c239f71b8aacc",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 15919,
       "url-template": "https://oligarchy.co.uk/xapian/$version/xapian-core-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libzim",
    "buildsystem": "meson",
    "builddir": true,
    "config-opts": [
     "--wrap-mode=nodownload",
     "-Dtest_data_dir=none"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/openzim/libzim.git",
      "tag": "9.8.2",
      "commit": "26ec526f74e8342a40da5ab14e364546988e0e1a",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 20193,
       "tag-template": "$version"
      }
     }
    ]
   },
   {
    "name": "tomlplusplus",
    "buildsystem": "meson",
    "builddir": true,
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/cmake"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/marzer/tomlplusplus.git",
      "tag": "v3.4.0",
      "commit": "30172438cee64926dc41fdd9c11fb3ba5b2ba9de",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "version-scheme": "semantic"
      }
     }
    ]
   },
   {
    "name": "goldendict-ng",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DWITH_XAPIAN=ON",
     "-DWITH_ZIM=ON",
     "-DWITH_FFMPEG_PLAYER=ON",
     "-DWITH_EPWING_SUPPORT=ON"
    ],
    "build-commands": [
     "install -Dm644 redist/icons/goldendict.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "desktop-file-edit --set-icon \"${FLATPAK_ID}\" redist/${FLATPAK_ID}.desktop"
    ],
    "cleanup": [
     "/share/pixmaps"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/xiaoyifang/goldendict-ng.git",
      "commit": "c84e0113b84fc9ee6d5cfef8de646b0eb95d7707",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d\\.]+)(?:[-_]Release\\.[a-f0-9]+)?$",
       "is-main-source": true,
       "version-scheme": "semantic"
      },
      "tag": "v26.8.0"
     }
    ]
   }
  ]
 }
}