{
 "app_id": "org.tuxpaint.Tuxpaint",
 "source_url": "https://raw.githubusercontent.com/flathub/org.tuxpaint.Tuxpaint/master/org.tuxpaint.Tuxpaint.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-pictures/TuxPaint:create"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:16:52.152062+00:00",
 "manifest": {
  "app-id": "org.tuxpaint.Tuxpaint",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=dri",
   "--filesystem=xdg-pictures/TuxPaint:create",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--persist=.tuxpaint"
  ],
  "command": "tuxpaint",
  "rename-desktop-file": "tuxpaint.desktop",
  "rename-icon": "tuxpaint",
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "libpaper",
    "config-opts": [
     "--disable-static"
    ],
    "cleanup": [
     "/bin",
     "/sbin"
    ],
    "sources": [
     {
      "x-checker-data": {
       "type": "anitya",
       "project-id": 15136,
       "url-template": "https://github.com/rrthomas/libpaper/releases/download/v${version}/libpaper-${version}.tar.gz"
      },
      "type": "archive",
      "url": "https://github.com/rrthomas/libpaper/releases/download/v2.2.7/libpaper-2.2.7.tar.gz",
      "sha256": "3925401edf1eda596277bc2485e050b704fd7f364f257c874b0c40ac5aa627c0"
     },
     {
      "type": "script",
      "commands": [
       "autoreconf -vfi"
      ],
      "dest-filename": "autogen.sh"
     }
    ]
   },
   "ImageMagick.json",
   {
    "name": "libimagequant",
    "sources": [
     {
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12768,
       "//": "TODO: Version 4 is rewritten in Rust",
       "versions": {
        "<": "4.0.0"
       },
       "tag-template": "${version}"
      },
      "type": "git",
      "url": "https://github.com/ImageOptim/libimagequant",
      "tag": "2.18.0",
      "commit": "caad5fb29bcc38a842addbac3c357becf3addf1e"
     }
    ]
   },
   "shared-modules/SDL2/SDL2_image.json",
   "shared-modules/SDL2/SDL2_ttf.json",
   "SDL2_gfx.json",
   "SDL2_Pango.json",
   {
    "name": "tuxpaint",
    "no-autogen": true,
    "no-parallel-make": true,
    "make-args": [
     "LDFLAGS=-L/app/lib",
     "PREFIX=/app"
    ],
    "make-install-args": [
     "LDFLAGS=-L/app/lib",
     "PREFIX=/app",
     "ARCH_INSTALL=install-man install-importscript"
    ],
    "sources": [
     {
      "x-checker-data": {
       "is-main-source": true,
       "type": "html",
       "url": "https://sourceforge.net/projects/tuxpaint/rss?path=/tuxpaint",
       "pattern": "(https://sourceforge.net/projects/tuxpaint/files/tuxpaint/(\\d+\\.\\d+\\.\\d+)/tuxpaint-\\2.tar.gz)"
      },
      "type": "archive",
      "url": "https://sourceforge.net/projects/tuxpaint/files/tuxpaint/0.9.35/tuxpaint-0.9.35.tar.gz",
      "sha256": "c1c18af91be77e94fdaab2c928204c4c39ba39ac5da2f441aaf2ecab6d8bd0ad"
     },
     {
      "type": "patch",
      "path": "Expose-SDL2_gfx-to-magic-plugins.patch"
     },
     {
      "type": "file",
      "path": "tuxpaint.conf"
     }
    ],
    "post-install": [
     "install -m644 -Dt /app/share/icons/hicolor/scalable/apps data/images/tuxpaint-icon.svg",
     "for size in 192 128 96 64 48 32 22 16; do install -m644 -D data/images/icon${size}x${size}.png /app/share/icons/hicolor/${size}x${size}/apps/tuxpaint.png; done",
     "desktop-file-edit --set-key=Keywords --set-value=tuxpaint src/tuxpaint.desktop",
     "install -m644 -Dt /app/share/applications src/tuxpaint.desktop",
     "install -m644 -Dt /app/share/metainfo src/org.tuxpaint.Tuxpaint.appdata.xml",
     "install -m644 -Dt /app/etc/tuxpaint tuxpaint.conf"
    ]
   },
   {
    "name": "tuxpaint-stamps",
    "buildsystem": "simple",
    "sources": [
     {
      "x-checker-data": {
       "is-important": true,
       "type": "html",
       "url": "https://sourceforge.net/projects/tuxpaint/rss?path=/tuxpaint-stamps",
       "pattern": "(https://sourceforge.net/projects/tuxpaint/files/tuxpaint-stamps/\\d{4}-\\d{2}-\\d{2}/tuxpaint-stamps-(\\d{4}\\.\\d{2}\\.\\d{2})\\.tar\\.gz)"
      },
      "type": "archive",
      "url": "https://sourceforge.net/projects/tuxpaint/files/tuxpaint-stamps/2025-05-26/tuxpaint-stamps-2025.05.26.tar.gz",
      "sha256": "09f4a29f8036c93a64c28134e3afaefb4b9d95a09a71e68fb7537f3c5f82949f"
     }
    ],
    "build-commands": [
     "make PREFIX=/app install-all"
    ]
   }
  ]
 }
}