{
 "app_id": "io.github.q962.ClipboardServer",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.q962.ClipboardServer/master/io.github.q962.ClipboardServer.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:12:01.771645+00:00",
 "manifest": {
  "id": "io.github.q962.ClipboardServer",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "ClipboardServer",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--device=dri"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node24/bin",
   "env": {
    "npm_config_cache": "/var/tmp/npm-cache",
    "npm_config_offline": "true",
    "npm_package_config_node_gyp_nodedir": "/usr/lib/sdk/node24"
   }
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "xmake",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/xmake-io/xmake.git",
      "tag": "v3.0.5"
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "libvips",
    "builddir": true,
    "buildsystem": "meson",
    "config-opts": [
     "--libdir=lib",
     "-Ddeprecated=false",
     "-Dmodules=disabled"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libvips/libvips.git",
      "commit": "698159ecc6e0d4428316388f783c2fa66a7a17fd"
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "npm-packages",
    "buildsystem": "simple",
    "build-commands": [
     "mv npm-cache /var/tmp"
    ],
    "sources": [
     "npm-packages.json"
    ]
   },
   {
    "name": "dnssd",
    "buildsystem": "simple",
    "build-commands": [
     "chmod u+x dnssd",
     "cp dnssd /var/tmp"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/q962/dnssd/releases/download/v1.2.14/dnssd-Linux-x86_64",
      "sha256": "98877a1c57d677169ea8f8b81e6ff95b5404451c7cc43395310449a60113e8c8",
      "dest-filename": "dnssd"
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/q962/dnssd/releases/download/v1.2.14/dnssd-Linux-aarch64",
      "sha256": "ef82ab5abea4b5625157b196027c2d3807395e8caa89711206caab59e010ec1e",
      "dest-filename": "dnssd"
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "ClipboardServer",
    "buildsystem": "simple",
    "build-commands": [
     "set -e\n\nmkdir -p build/bin\ncp /var/tmp/dnssd build/bin\n\nexport XMAKE_GLOBALDIR=/run/temp/xmake\nexport XMAKE_ROOT=y\nxmake g --network=private\n\nxmake f --mode=releasedbg\nxmake b\nxmake install -o /app\n\neu-unstrip /app/bin/ClipboardServer /app/bin/ClipboardServer.sym -o ClipboardServer\nmv ClipboardServer /app/bin\nrm /app/bin/*.sym\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/q962/ClipboardServer",
      "tag": "v2.0.0"
     }
    ]
   }
  ]
 }
}