{
 "app_id": "com.github.gyunaev.spivak",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.gyunaev.spivak/master/com.github.gyunaev.spivak.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-music",
  "--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:07:34.902169+00:00",
 "manifest": {
  "app-id": "com.github.gyunaev.spivak",
  "command": "spivak",
  "rename-desktop-file": "spivak.desktop",
  "rename-icon": "spivak",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-music"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib64/pkgconfig",
   "/share/doc",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   "shared-modules/cld2/cld2.json",
   {
    "name": "libzip",
    "buildsystem": "cmake",
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://libzip.org/download/libzip-1.11.4.tar.xz",
      "sha256": "8a247f57d1e3e6f6d11413b12a6f28a9d388de110adc0ec608d893180ed7097b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10649,
       "url-template": "https://libzip.org/download/libzip-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "uchardet",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz",
      "sha256": "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 9265,
       "url-template": "https://www.freedesktop.org/software/uchardet/releases/uchardet-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "spivak",
    "buildsystem": "qmake",
    "config-opts": [
     "QMAKE_LIBDIR=/app/lib",
     "CONFIG+=release",
     "CONFIG-=GOOGLEBREAKPAD"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/gyunaev/spivak.git",
      "tag": "1.4",
      "commit": "8fa316e1c9820d5462412f6f6f0d25f7398cb3b8",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     {
      "type": "file",
      "path": "com.github.gyunaev.spivak.appdata.xml"
     },
     {
      "type": "file",
      "path": "application-128.png"
     },
     {
      "type": "patch",
      "path": "0001-Fixed-29.patch"
     }
    ],
    "post-install": [
     "mkdir -p /app/bin /app/lib/spivak/plugins /app/share/appdata /app/share/applications /app/share/icons/hicolor/64x64/apps /app/share/icons/hicolor/128x128/apps",
     "cp src/spivak /app/bin/spivak",
     "cp plugins/languagedetector/plugin_langdetect.so /app/lib/spivak/plugins/plugin_langdetect.so",
     "cp packaging/spivak.desktop /app/share/applications/spivak.desktop",
     "cp packaging/icon.png /app/share/icons/hicolor/64x64/apps/spivak.png",
     "cp application-128.png /app/share/icons/hicolor/128x128/apps/spivak.png",
     "cp com.github.gyunaev.spivak.appdata.xml /app/share/appdata"
    ]
   }
  ]
 }
}