{
 "app_id": "com.tux4kids.tuxmath",
 "source_url": "https://raw.githubusercontent.com/flathub/com.tux4kids.tuxmath/master/com.tux4kids.tuxmath.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:09:00.333887+00:00",
 "manifest": {
  "app-id": "com.tux4kids.tuxmath",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio",
   "--persist=.t4k_common",
   "--persist=.tuxmath"
  ],
  "command": "tuxmath",
  "rename-appdata-file": "tuxmath.appdata.xml",
  "rename-desktop-file": "tuxmath.desktop",
  "rename-icon": "tuxmath",
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/SDL/SDL-1.2.15.json",
   "shared-modules/smpeg/smpeg-0.4.5.json",
   "shared-modules/SDL/SDL_mixer-1.2.12.json",
   "shared-modules/SDL/SDL_image-1.2.12.json",
   "shared-modules/SDL/SDL_net-1.2.8.json",
   "shared-modules/SDL/SDL_pango-0.1.2.json",
   {
    "name": "t4kcommon",
    "rm-configure": true,
    "build-options": {
     "cflags": "-fcommon -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -std=gnu17",
     "cxxflags": "-fcommon -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -std=gnu17"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/tuxmath/t4k_common/t4k_common-0.1.1.tar.gz",
      "sha256": "42c155816dae2c5dad560faa50edaa1ca84536530283d37859c4b91e82675110"
     },
     {
      "type": "patch",
      "path": "t4kcommon-libpng16.patch"
     },
     {
      "type": "patch",
      "path": "t4kcommon-libxml2-frame-count.patch"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "tuxmath",
    "rm-configure": true,
    "build-options": {
     "cflags": "-fcommon -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -std=gnu17",
     "cxxflags": "-fcommon -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -std=gnu17"
    },
    "sources": [
     {
      "type": "archive",
      "url": "http://distro.ibiblio.org/slitaz/sources/packages/t/tuxmath_w_fonts-2.0.3.tar.gz",
      "sha256": "eec49c296d41df39a6474d94ba4e3334e4c16dc180d3ea4a6defc2debfc39887"
     },
     {
      "type": "patch",
      "path": "tuxmath-fix-crash.patch"
     },
     {
      "type": "file",
      "path": "tuxmath.appdata.xml"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ],
    "post-install": [
     "install -Dm644 tuxmath.appdata.xml -t /app/share/appdata/",
     "install -Dm644 tuxmath.desktop -t /app/share/applications/",
     "install -Dm644 data/images/icons/icon.png /app/share/icons/hicolor/48x48/apps/tuxmath.png",
     "install -Dm644 data/images/icons/tuxmath.svg -t /app/share/icons/hicolor/scalable/apps/",
     "sed -i 's/height=\"117\"/height=\"132\"/' /app/share/icons/hicolor/scalable/apps/tuxmath.svg"
    ]
   }
  ]
 }
}