{
 "app_id": "org.ultimatepp.TheIDE",
 "source_url": "https://raw.githubusercontent.com/flathub/org.ultimatepp.TheIDE/master/org.ultimatepp.TheIDE.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:16:52.152064+00:00",
 "manifest": {
  "id": "org.ultimatepp.TheIDE",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm21",
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "run-ide.sh",
  "cleanup": [
   "/bin/.cache",
   "/bin/umk",
   "/bm"
  ],
  "finish-args": [
   "--socket=x11",
   "--share=network",
   "--share=ipc",
   "--filesystem=host",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   {
    "name": "upp",
    "buildsystem": "simple",
    "build-commands": [
     "printf \"#define flagFlatpak 1\\\\n\" > uppsrc/uppconfig.h",
     "printf \"#define IDE_VERSION \\\"2025.1.1\\\"\\\\n\" > uppsrc/ide/version.h",
     "make -f Makefile -j $FLATPAK_BUILDER_N_JOBS",
     "printf \"\\\\n\" > uppsrc/uppconfig.h",
     "make -f umkMakefile.in -j $FLATPAK_BUILDER_N_JOBS",
     "mv ide theide",
     "install -Dm755 theide /app/bin/theide",
     "install -Dm755 umk /app/bin/umk",
     "install -Dm644 uppsrc/ide/icon.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 uppsrc/ide/theide.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-key=Icon --set-value=${FLATPAK_ID} /app/share/applications/${FLATPAK_ID}.desktop",
     "mkdir -p /app/{src,lib,bm}",
     "printf \"\\\\n\" > uppsrc/uppconfig.h",
     "rm -f /app/src/ver.txt && touch /app/src/ver.txt",
     "printf \"2025.1.1\" > /app/src/ver.txt",
     "cp -r examples /app/src",
     "cp -r reference /app/src",
     "cp -r tutorial /app/src",
     "cp -r uppsrc /app/src",
     "cp .clang-format /app/src/uppsrc/.clang-format",
     "cp uppbox/Scripts/GCCMK.bm /app/bm/GCC.bm",
     "cp run-ide-install-host-deps.sh /app/src/run-ide-install-host-deps.sh",
     "cp -a /usr/lib/sdk/llvm21/lib/libLLVM* /app/lib/",
     "cp -a /usr/lib/sdk/llvm21/lib/libLLVMTableGen.so* /app/lib/",
     "cp -a /usr/lib/sdk/llvm21/lib/libclang.so* /app/lib/",
     "cp -a /usr/lib/sdk/llvm21/lib/libclang-cpp.so* /app/lib/",
     "cp /usr/lib/sdk/llvm21/lib/LLVMgold.so /app/lib/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ultimatepp/ultimatepp/archive/refs/tags/2025.1.1.tar.gz",
      "sha256": "de908431e1ed29b4cf05e775108cf0b13d5a1c6921e63c2ddf623dbcbe3f0646"
     },
     {
      "type": "file",
      "path": "run-ide-install-host-deps.sh"
     },
     {
      "type": "patch",
      "path": "patches/execute.patch"
     }
    ]
   },
   {
    "name": "upp-term",
    "buildsystem": "simple",
    "build-commands": [
     "mv 3p/Terminal/PtyProcess app/PtyProcess",
     "mv 3p/Terminal/PtyAgent app/PtyAgent",
     "mv 3p/Terminal/Terminal app/Terminal",
     "/app/bin/umk app/,3p/uppsrc UppTerm /app/bm/GCC.bm -brv +GUI,SHARED upp-term",
     "install -Dm755 upp-term /app/bin/upp-term"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ultimatepp/UppTerm/archive/refs/tags/v2023.2.tar.gz",
      "sha256": "b982ee8e8319f61f8861f03e7e446de5490e93d72c137e9a4e3d7215be0fb1a7"
     },
     {
      "type": "archive",
      "url": "https://github.com/ismail-yilmaz/Terminal/archive/refs/tags/2025.1.tar.gz",
      "sha256": "055c3b3e5011c93ff2c11abf649455fc4e3e7642ea7032738506e88910e86224",
      "dest": "3p/Terminal"
     },
     {
      "type": "archive",
      "url": "https://github.com/ultimatepp/ultimatepp/releases/download/2025.1.1/uppsrc-17810.tar.gz",
      "sha256": "5f1afd7afdb235801e952d9de84248fb0fe32f423cd26dd5920739dd60215744",
      "dest": "3p/uppsrc"
     }
    ]
   },
   {
    "name": "run-ide",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 run-ide.sh /app/bin/run-ide.sh",
     "desktop-file-edit --set-key=Exec --set-value=run-ide.sh /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 org.ultimatepp.TheIDE.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ],
    "sources": [
     {
      "type": "file",
      "path": "run-ide.sh"
     },
     {
      "type": "file",
      "path": "org.ultimatepp.TheIDE.metainfo.xml"
     }
    ]
   },
   {
    "name": "host-spawn",
    "buildsystem": "simple",
    "build-commands": [
     ". /usr/lib/sdk/golang/enable.sh; go build",
     "install -Dm755 host-spawn /app/bin/host-spawn"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/1player/host-spawn/archive/refs/tags/v1.6.2.tar.gz",
      "sha256": "77be74180d3c14cdf6199e2f5d77ad5a732b5902beecfdb81a3760038862af43"
     },
     {
      "type": "git",
      "url": "https://github.com/godbus/dbus",
      "tag": "v5.1.0",
      "dest": "vendor/github.com/godbus/dbus/v5"
     },
     {
      "type": "git",
      "url": "https://github.com/pkg/term",
      "tag": "v1.1.0",
      "dest": "vendor/github.com/pkg/term"
     },
     {
      "type": "git",
      "url": "https://go.googlesource.com/sys",
      "tag": "v0.15.0",
      "dest": "vendor/golang.org/x/sys"
     },
     {
      "type": "file",
      "path": "host-spawn/modules.txt",
      "dest": "vendor/"
     }
    ]
   }
  ]
 }
}