{
 "app_id": "org.scintilla.SciTE",
 "source_url": "https://raw.githubusercontent.com/flathub/org.scintilla.SciTE/master/org.scintilla.SciTE.yaml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=host"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:16:32.159701+00:00",
 "manifest": {
  "app-id": "org.scintilla.SciTE",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "SciTE",
  "rename-desktop-file": "SciTE.desktop",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=host"
  ],
  "modules": [
   {
    "name": "astyle",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/astyle/files/astyle/astyle%203.6/astyle-3.6.13.tar.bz2",
      "sha256": "048b74b14c6e01f7fae8e63b767da33303ab39d9022afe33055ce4b9e56f162d"
     }
    ],
    "cleanup": [
     "*.a",
     "/share/man",
     "/include"
    ]
   },
   {
    "name": "SciTE",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.scintilla.org/scite563.tgz",
      "strip-components": 0,
      "sha256": "269c6408e78d54e2ac54ff91c3c6485fda8b87d316f7fc9b68b5efd8abd9d490"
     },
     {
      "type": "file",
      "path": "org.scintilla.SciTE.metainfo.xml"
     },
     {
      "type": "file",
      "path": "org.scintilla.SciTE.png"
     },
     {
      "type": "file",
      "path": "SciTEGlobal.properties"
     },
     {
      "type": "file",
      "path": "cpp.build.run.properties"
     },
     {
      "type": "archive",
      "path": "toolbar-icons.tar.xz"
     }
    ],
    "build-commands": [
     "cd scintilla/gtk && make GTK3=1 -j $FLATPAK_BUILDER_N_JOBS prefix=\"${FLATPAK_DEST}\"",
     "cd lexilla/src && make GTK3=1 -j $FLATPAK_BUILDER_N_JOBS prefix=\"${FLATPAK_DEST}\"",
     "cd scite/gtk && make GTK3=1 -j $FLATPAK_BUILDER_N_JOBS prefix=\"${FLATPAK_DEST}\" && make GTK3=1 install prefix=\"${FLATPAK_DEST}\"",
     "mkdir -p /app/share/metainfo",
     "install -Dm644 org.scintilla.SciTE.metainfo.xml /app/share/metainfo/",
     "mkdir -p ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/",
     "install -Dm644 org.scintilla.SciTE.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/",
     "mkdir -p ${FLATPAK_DEST}/share/scite",
     "install -Dm644 SciTEGlobal.properties ${FLATPAK_DEST}/share/scite",
     "cat cpp.build.run.properties >> ${FLATPAK_DEST}/share/scite/cpp.properties",
     "ln -sf ${FLATPAK_DEST}/lib/scite/*.so ${FLATPAK_DEST}/lib",
     "sed 's/Icon=Sci48M/Icon=org.scintilla.SciTE/g' -i ${FLATPAK_DEST}/share/applications/SciTE.desktop",
     "mkdir -p ${FLATPAK_DEST}/share/icons/Adwaita/{22x22,24x24}/ ${FLATPAK_DEST}/share/icons/hicolor/22x22/actions",
     "install -Dm644 *.png ${FLATPAK_DEST}/share/icons/hicolor/22x22/actions",
     "ln -sf ${FLATPAK_DEST}/share/icons/hicolor/22x22/actions ${FLATPAK_DEST}/share/icons/Adwaita/22x22/actions",
     "ln -sf ${FLATPAK_DEST}/share/icons/hicolor/22x22/actions ${FLATPAK_DEST}/share/icons/Adwaita/22x22/legacy",
     "ln -sf ${FLATPAK_DEST}/share/icons/hicolor/22x22/actions ${FLATPAK_DEST}/share/icons/Adwaita/24x24/legacy",
     "ln -sf ${FLATPAK_DEST}/share/icons/hicolor/22x22/actions ${FLATPAK_DEST}/share/icons/Adwaita/24x24/actions",
     "mkdir -p /app/share/fonts/",
     "ln -s /usr/share/fonts/liberation-fonts/LiberationMono*.ttf /app/share/fonts/"
    ],
    "cleanup": [
     "*.a",
     "/share/man",
     "/include"
    ]
   }
  ]
 }
}