{
 "app_id": "com.javocsoft.LinuxStreamDeck",
 "source_url": "https://raw.githubusercontent.com/javocsoft/linuxstreamdeck/main/packaging/flatpak/com.javocsoft.LinuxStreamDeck.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--device=dri",
  "--device=all",
  "--share=network",
  "--socket=pulseaudio",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--own-name=org.kde.*",
  "--talk-name=com.canonical.indicator.application",
  "--talk-name=org.ayatana.indicator.application",
  "--talk-name=org.mpris.MediaPlayer2.*",
  "--talk-name=org.freedesktop.Flatpak",
  "--filesystem=home",
  "--filesystem=host-os:ro",
  "--filesystem=xdg-data/applications:ro"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T17:50:57.267017+00:00",
 "manifest": {
  "app-id": "com.javocsoft.LinuxStreamDeck",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "linuxstreamdeck",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--device=all",
   "--share=network",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--own-name=org.kde.*",
   "--talk-name=com.canonical.indicator.application",
   "--talk-name=org.ayatana.indicator.application",
   "--talk-name=org.mpris.MediaPlayer2.*",
   "--talk-name=org.freedesktop.Flatpak",
   "--filesystem=home",
   "--filesystem=host-os:ro",
   "--filesystem=xdg-data/applications:ro"
  ],
  "build-options": {
   "build-args": [
    "--share=network"
   ]
  },
  "modules": [
   {
    "name": "libusb",
    "config-opts": [
     "--disable-static",
     "--disable-udev"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2",
      "sha256": "ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "hidapi",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DHIDAPI_WITH_HIDRAW=ON",
     "-DHIDAPI_WITH_LIBUSB=ON",
     "-DBUILD_SHARED_LIBS=ON",
     "-DCMAKE_INSTALL_LIBDIR=lib"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.15.0.tar.gz",
      "sha256": "5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/cmake",
     "/lib64"
    ]
   },
   {
    "name": "python-dependencies",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=${FLATPAK_DEST} --no-compile \"pillow>=10.0\" \"streamdeck>=0.9.5\" \"obsws-python>=1.7\""
    ]
   },
   {
    "name": "linuxstreamdeck",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-deps --no-compile --prefix=${FLATPAK_DEST} .",
     "install -Dm644 packaging/com.javocsoft.LinuxStreamDeck.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 packaging/com.javocsoft.LinuxStreamDeck.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -d ${FLATPAK_DEST}/share/metainfo",
     "version=$(sed -n 's/^version = \"\\([^\"]*\\)\"/\\1/p' pyproject.toml) && release_date=$(date -u +%F) && sed -e \"s/@VERSION@/${version}/g\" -e \"s/@DATE@/${release_date}/g\" packaging/com.javocsoft.LinuxStreamDeck.metainfo.xml > ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 data/udev/70-linuxstreamdeck.rules ${FLATPAK_DEST}/share/linuxstreamdeck/70-linuxstreamdeck.rules"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../..",
      "skip": [
       ".git",
       ".venv",
       "build",
       "dist",
       "landing"
      ]
     }
    ]
   }
  ]
 }
}