{
 "app_id": "org.codeblocks.codeblocks",
 "source_url": "https://raw.githubusercontent.com/flathub/org.codeblocks.codeblocks/master/org.codeblocks.codeblocks.yaml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=session-bus",
  "--socket=system-bus",
  "--socket=ssh-auth",
  "--device=dri",
  "--filesystem=home",
  "--allow=devel"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-17T17:19:09.590629+00:00",
 "manifest": {
  "app-id": "org.codeblocks.codeblocks",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "rename-desktop-file": "codeblocks.desktop",
  "rename-icon": "codeblocks",
  "command": "codeblocks",
  "finish-args": [
   "--allow=devel",
   "--device=dri",
   "--env=PATH=/usr/bin:/app/bin:/app/plugins/devtools/bin",
   "--env=C_INCLUDE_PATH=/app/plugins/devtools/include",
   "--env=CPLUS_INCLUDE_PATH=/app/plugins/devtools/include",
   "--filesystem=home",
   "--share=ipc",
   "--share=network",
   "--socket=session-bus",
   "--socket=ssh-auth",
   "--socket=system-bus",
   "--socket=x11"
  ],
  "cleanup": [
   "/share/metainfo/codeblocks.appdata.xml",
   "*.a",
   "*.la"
  ],
  "add-extensions": {
   "org.codeblocks.codeblocks.Plugin": {
    "versions": "stable;test;master;beta",
    "directory": "plugins",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true,
    "add-ld-path": "lib"
   }
  },
  "modules": [
   {
    "name": "devTools",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/plugins"
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh",
     "./b2 --with-system variant=release link=shared debug-symbols=off runtime-link=shared --prefix=${FLATPAK_DEST} install"
    ],
    "cleanup": [
     "/include",
     "/lib/cmake"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/boost/boost/1.88.0/boost_1_88_0.tar.bz2",
      "sha256": "46d9d2c06637b219270877c9e16155cbd015b6dc84349af064c088e9b5b12f7b"
     }
    ]
   },
   {
    "name": "wxwidgets",
    "buildsystem": "autotools",
    "no-autogen": true,
    "config-opts": [
     "--with-gtk=3",
     "--disable-webview"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/wx",
     "/share/aclocal",
     "/share/bakefile"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.6/wxWidgets-3.2.6.tar.bz2",
      "sha256": "939e5b77ddc5b6092d1d7d29491fe67010a2433cf9b9c0d841ee4d04acb9dce7"
     }
    ]
   },
   {
    "name": "termite",
    "buildsystem": "meson",
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/systemd",
     "/share/applications",
     "/share/man",
     "*.a"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/aperezdc/termite/releases/download/v16.9/termite-16.9.tar.xz",
      "sha256": "95486a0330dfcaa68dca3a26afc95b2711c1bef8187503be54d04e1ee8458bd6"
     }
    ]
   },
   {
    "name": "cppcheck",
    "buildsystem": "cmake-ninja",
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/share/applications",
     "/share/man",
     "*.a"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/cppcheck/files/cppcheck/2.20/cppcheck-2.20.0.tar.gz",
      "sha256": "7be7992439339017edb551d8e7d2315f9bb57c402da50c2cee9cd0e2724600a1"
     }
    ]
   },
   {
    "name": "codeblocks",
    "build-options": {
     "cxxflags": "-std=gnu++14"
    },
    "config-opts": [
     "--with-boost-libdir=/app/lib",
     "--with-contrib-plugins=all"
    ],
    "post-install": [
     "mv ${FLATPAK_DEST}/bin/codeblocks{,-bin}",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm644 codeblocks-256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/codeblocks.png",
     "desktop-file-edit --set-key=Keywords --set-value=\"IDE;C++;C;SDL;Fortran;SFML;wxWidgets;Raylib;FLTK;\" /app/share/applications/codeblocks.desktop"
    ],
    "sources": [
     {
      "type": "svn",
      "url": "https://svn.code.sf.net/p/codeblocks/code/branches/release-25.03",
      "revision": "13647"
     },
     {
      "type": "file",
      "path": "codeblocks-256.png"
     },
     {
      "type": "file",
      "path": "org.codeblocks.codeblocks.metainfo.xml"
     },
     {
      "type": "patch",
      "path": "patches/codeblocks-default-terminal.patch"
     }
    ]
   },
   {
    "name": "ide-flatpak-wrapper",
    "buildsystem": "meson",
    "config-opts": [
     "-Deditor_binary=/app/bin/codeblocks-bin",
     "-Deditor_title=codeblocks",
     "-Dprogram_name=codeblocks",
     "-Dfirst_run_template=first_run.h",
     "-Dsdk_update_template=sdk_update.h",
     "-Dsdk_version=25.08"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub/ide-flatpak-wrapper.git",
      "commit": "d581fd9b873acbf6fb22899aa388435f6c00f61a"
     },
     {
      "type": "file",
      "path": "wrapper/first_run.h"
     },
     {
      "type": "file",
      "path": "wrapper/sdk_update.h"
     }
    ]
   }
  ]
 }
}