{
 "app_id": "org.icculus.tennix",
 "source_url": "https://raw.githubusercontent.com/flathub/org.icculus.tennix/master/org.icculus.tennix.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:15:16.413191+00:00",
 "manifest": {
  "app-id": "org.icculus.tennix",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "tennix",
  "rename-icon": "tennix",
  "rename-desktop-file": "tennix.desktop",
  "rename-appdata-file": "tennix.appdata.xml",
  "finish-args": [
   "--socket=wayland",
   "--socket=pulseaudio",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "/share/pixmaps",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "SDL2_gfx",
    "buildsystem": "autotools",
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "--disable-mmx"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/sdl2gfx/SDL2_gfx-1.0.4.tar.gz",
      "sha256": "63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} .",
       "autoreconf -fvi"
      ]
     }
    ]
   },
   "shared-modules/SDL2/SDL2_image.json",
   "shared-modules/SDL2/SDL2_ttf.json",
   "shared-modules/SDL2/SDL2_mixer.json",
   {
    "name": "tennix",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix ${FLATPAK_DEST}",
     "make install",
     "install -Dm0644 data/tennix.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm0644 tennix.svg -t ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/",
     "install -Dm0644 tennix.appdata.xml -t ${FLATPAK_DEST}/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://repo.or.cz/tennix.git",
      "tag": "tennix-1.3.5",
      "commit": "e5271827c9f913efc055a7192c5f0c78d605e9f2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^tennix-([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "fix-build-errors.patch"
     },
     {
      "type": "file",
      "path": "tennix.svg"
     },
     {
      "type": "file",
      "path": "tennix.appdata.xml"
     }
    ]
   }
  ]
 }
}