{
 "app_id": "ru.arabianq.pwsp",
 "source_url": "https://raw.githubusercontent.com/arabianq/pipewire-soundpad/main/packages/flatpak/ru.arabianq.pwsp.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-run/pwsp:create",
  "--filesystem=xdg-run/app/ru.arabianq.pwsp:create",
  "--filesystem=home",
  "--device=all",
  "--device=dri",
  "--talk-name=org.freedesktop.portal.Desktop",
  "--talk-name=org.freedesktop.portal.Documents"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T13:03:03.714355+00:00",
 "manifest": {
  "app-id": "ru.arabianq.pwsp",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "command": "pwsp-wrapper.py",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=xdg-run/pwsp:create",
   "--filesystem=xdg-run/app/ru.arabianq.pwsp:create",
   "--filesystem=home",
   "--device=all",
   "--device=dri",
   "--talk-name=org.freedesktop.portal.Desktop",
   "--talk-name=org.freedesktop.portal.Documents"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin",
   "env": {
    "CARGO_HOME": "/run/build/pwsp/cargo",
    "LIBCLANG_PATH": "/usr/lib/sdk/llvm20/lib"
   }
  },
  "modules": [
   {
    "name": "pwsp",
    "buildsystem": "simple",
    "build-commands": [
     "if [ -w /run/ccache ]; then mkdir -p /run/ccache/cargo-target && rm -rf target && ln -s /run/ccache/cargo-target target; fi",
     "export CARGO_HOME=$PWD/cargo && cargo build --release --offline",
     "install -Dm755 target/release/pwsp-daemon /app/bin/pwsp-daemon",
     "install -Dm755 target/release/pwsp-cli /app/bin/pwsp-cli",
     "install -Dm755 target/release/pwsp-gui /app/bin/pwsp-gui",
     "install -Dm755 packages/flatpak/pwsp-wrapper.py /app/bin/pwsp-wrapper.py",
     "install -Dm644 pwsp-gui/assets/icon.png /app/share/icons/hicolor/256x256/apps/ru.arabianq.pwsp.png",
     "install -Dm644 packages/flatpak/ru.arabianq.pwsp.desktop /app/share/applications/ru.arabianq.pwsp.desktop",
     "install -Dm644 packages/flatpak/ru.arabianq.pwsp.metainfo.xml /app/share/metainfo/ru.arabianq.pwsp.metainfo.xml"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../../"
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}