{
 "app_id": "edu.berkeley.BOINC",
 "source_url": "https://raw.githubusercontent.com/flathub/edu.berkeley.BOINC/master/edu.berkeley.BOINC.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:09:49.070310+00:00",
 "manifest": {
  "app-id": "edu.berkeley.BOINC",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "boincmgr",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--persist=.BOINC",
   "--persist=."
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "wxWidgets",
    "buildsystem": "cmake-ninja",
    "cleanup": [
     "/bin",
     "/lib/wx/include"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/wxWidgets/wxWidgets.git",
      "tag": "v3.3.1",
      "commit": "49c6810948f40c457e3d0848b9111627b5b61de5"
     }
    ]
   },
   {
    "name": "freeglut",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/freeglut/freeglut/releases/download/v3.8.0/freeglut-3.8.0.tar.gz",
      "sha256": "674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989"
     }
    ]
   },
   {
    "name": "libXmu",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/releases/individual/lib/libXmu-1.2.1.tar.gz",
      "sha256": "bf0902583dd1123856c11e0a5085bd3c6e9886fbbd44954464975fd7d52eb599"
     }
    ]
   },
   {
    "name": "boinc",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-server",
     "--disable-fcgi",
     "--enable-unicode"
    ],
    "make-install-args": [
     "DESTDIR=${FLATPAK_DEST}",
     "prefix=",
     "exec_prefix="
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/BOINC/boinc.git",
      "tag": "client_release/8.2/8.2.12",
      "commit": "9949cd3c12932b5f3f2997ce460fd959107c65a5"
     },
     {
      "type": "file",
      "path": "edu.berkeley.BOINC.metainfo.xml"
     },
     {
      "type": "patch",
      "path": "change-application-defaults.patch"
     },
     {
      "type": "shell",
      "commands": [
       "./_autosetup"
      ]
     }
    ],
    "post-install": [
     "sed -i 's:#BOINCDIR=/var/lib/boinc:BOINCDIR=/:' ${FLATPAK_DEST}/etc/boinc-client.conf",
     "install -Dm644 clientgui/res/boinc.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 clientgui/res/boinc.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 edu.berkeley.BOINC.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "desktop-file-edit --remove-key=Path ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
    ]
   }
  ]
 }
}