{
 "app_id": "com.springrts.Spring",
 "source_url": "https://raw.githubusercontent.com/spring/com.springrts.Spring/master/com.springrts.Spring.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "22.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--socket=x11",
  "--share=ipc",
  "--device=dri",
  "--socket=pulseaudio",
  "--filesystem=~/.spring:create",
  "--filesystem=~/.config/spring:create",
  "--env=PATH=/app/jre/bin:/app/bin"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-20T13:05:25.390366+00:00",
 "manifest": {
  "app-id": "com.springrts.Spring",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "22.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk11"
  ],
  "command": "spring",
  "rename-icon": "spring",
  "rename-desktop-file": "spring.desktop",
  "rename-appdata-file": "spring.appdata.xml",
  "finish-args": [
   "--share=network",
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=~/.spring:create",
   "--filesystem=~/.config/spring:create",
   "--env=PATH=/app/jre/bin:/app/bin"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk11/install.sh"
    ]
   },
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "glut",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FreeGLUTProject/freeglut.git",
      "commit": "63c0e78d84ecbfcf8accd8bac04404427899053b"
     }
    ]
   },
   {
    "name": "devil",
    "buildsystem": "simple",
    "build-commands": [
     "cmake DevIL -DGLUT_INCLUDE_DIR=/usr/include/gl -DCMAKE_INSTALL_PREFIX=/app -G Ninja",
     "ninja install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/spring/devil.git",
      "commit": "c6feb55c90d9dfc4eb696c2a30f08e31ae4f4105"
     }
    ]
   },
   {
    "name": "p7zip",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/bin",
     "make -C CPP/7zip/Bundles/Alone2 -f makefile.gcc -j $FLATPAK_BUILDER_N_JOBS",
     "install CPP/7zip/Bundles/Alone2/_o/7zz $FLATPAK_DEST/bin/7za"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.7-zip.org/a/7z2201-src.tar.xz",
      "sha256": "393098730c70042392af808917e765945dc2437dee7aae3cfcc4966eb920fbc5",
      "strip-components": 0
     }
    ]
   },
   {
    "name": "spring",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DJAVA_HOME=/usr/lib/sdk/openjdk11/jvm/openjdk-11",
     "-DENABLE_MANPAGES=FALSE",
     "-DAI_TYPES=NATIVE"
    ],
    "post-install": [
     "mkdir -p $FLATPAK_DEST/share/appdata",
     "cp spring.appdata.xml $FLATPAK_DEST/share/appdata",
     "mkdir -p $FLATPAK_DEST/share/icons/hicolor/scalable/apps",
     "install $FLATPAK_BUILDER_BUILDDIR/rts/spring.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/spring/spring.git",
      "commit": "74c4243cc33d3707dc8340e8fc87084756eb7e43",
      "disable-shallow-clone": true,
      "disable-fsckobjects": true
     },
     {
      "type": "file",
      "path": "spring.appdata.xml"
     }
    ]
   }
  ]
 }
}