{
 "app_id": "cc.retroshare.retroshare-gui",
 "source_url": "https://raw.githubusercontent.com/flathub/cc.retroshare.retroshare-gui/master/cc.retroshare.retroshare-gui.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-24.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:06:42.467286+00:00",
 "manifest": {
  "app-id": "cc.retroshare.retroshare-gui",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-24.08",
  "sdk": "org.kde.Sdk",
  "command": "retroshare",
  "finish-args": [
   "--device=dri",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--filesystem=host",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "build-options": {
   "no-debuginfo": true,
   "strip": false
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/info",
   "*.a",
   "*.la"
  ],
  "rename-desktop-file": "retroshare.desktop",
  "rename-icon": "retroshare",
  "modules": [
   {
    "name": "tcl",
    "buildsystem": "autotools",
    "subdir": "unix",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/tcl/files/Tcl/8.6.16/tcl8.6.16-src.tar.gz",
      "sha256": "91cb8fa61771c63c262efb553059b7c7ad6757afa5857af6265e4b0bdc2a14a5"
     }
    ],
    "cleanup": [
     "/bin",
     "/lib"
    ]
   },
   {
    "name": "sqlcipher",
    "skip-arches": [
     "aarch64"
    ],
    "buildsystem": "autotools",
    "config-opts": [
     "--with-tempstore=yes",
     "--disable-tcl"
    ],
    "build-options": {
     "cflags": "-DSQLITE_HAS_CODEC",
     "ldflags": "-lcrypto"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/sqlcipher/sqlcipher/archive/refs/tags/v4.6.1.tar.gz",
      "sha256": "d8f9afcbc2f4b55e316ca4ada4425daf3d0b4aab25f45e11a802ae422b9f53a3"
     }
    ],
    "cleanup": [
     "/bin"
    ]
   },
   {
    "name": "miniupnpc",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DUPNPC_BUILD_STATIC=FALSE",
     "-DUPNPC_BUILD_SHARED=TRUE",
     "-DUPNPC_BUILD_TESTS=FALSE",
     "-DUPNPC_BUILD_SAMPLE=FALSE"
    ],
    "cleanup": [
     "/include",
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://miniupnp.free.fr/files/miniupnpc-2.2.5.tar.gz",
      "sha256": "38acd5f4602f7cf8bcdc1ec30b2d58db2e9912e5d9f5350dd99b06bfdffb517c"
     }
    ]
   },
   {
    "name": "libevent",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz",
      "sha256": "92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb"
     }
    ]
   },
   {
    "name": "tor",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://dist.torproject.org/tor-0.4.8.21.tar.gz",
      "sha256": "eaf6f5b73091b95576945eade98816ddff7cd005befe4d94718a6f766b840903"
     }
    ]
   },
   {
    "name": "rapidjson",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DRAPIDJSON_BUILD_DOC=OFF",
     "-DRAPIDJSON_BUILD_EXAMPLES=OFF",
     "-DRAPIDJSON_BUILD_TESTS=OFF"
    ],
    "cleanup": [
     "/include",
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Tencent/rapidjson/archive/refs/heads/master.zip",
      "sha256": "45657e20a02417e4d874a7861c7e3fc00cd03f83344bd20f4c894483a7336b4c"
     }
    ]
   },
   "shared-modules/libsecret/libsecret.json",
   {
    "name": "retroshare-gui",
    "buildsystem": "qmake",
    "config-opts": [
     "CONFIG-=debug",
     "CONFIG+=release",
     "CONFIG+=rs_efs",
     "CONFIG+=rs_autologin",
     "CONFIG+=rs_jsonapi",
     "CONFIG+=rs_webui",
     "RS_UPNP_LIB=miniupnpc"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "CONFIG-=debug",
        "CONFIG+=release",
        "CONFIG+=no_sqlcipher",
        "RS_UPNP_LIB=miniupnpc"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/RetroShare/RetroShare.git",
      "tag": "v0.6.7.3",
      "commit": "0caf8e79dbc941fd16eaa15d6d8a20885f5f005e",
      "disable-shallow-clone": true
     },
     {
      "type": "file",
      "path": "cc.retroshare.retroshare-gui.appdata.xml"
     },
     {
      "type": "patch",
      "path": "0001-adapt-desktop-file.patch"
     },
     {
      "type": "shell",
      "commands": [
       "install -Dm644 cc.retroshare.retroshare-gui.appdata.xml /app/share/appdata/cc.retroshare.retroshare-gui.appdata.xml"
      ]
     }
    ]
   }
  ]
 }
}