{
 "app_id": "org.mypaint.MyPaint",
 "source_url": "https://raw.githubusercontent.com/flathub/org.mypaint.MyPaint/master/org.mypaint.MyPaint.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--filesystem=home"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:16:05.499506+00:00",
 "manifest": {
  "app-id": "org.mypaint.MyPaint",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "mypaint",
  "rename-desktop-file": "mypaint.desktop",
  "rename-appdata-file": "mypaint.appdata.xml",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--filesystem=home",
   "--metadata=X-DConf=migrate-path=/org/mypaint/MyPaint/"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/pkgconfig"
  ],
  "modules": [
   "shared-modules/intltool/intltool-0.51.json",
   {
    "name": "openblas",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "cflags": "-std=gnu18"
    },
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DBUILD_SHARED_LIBS=ON",
     "-DBUILD_TESTING=OFF",
     "-DNO_AFFINITY=ON",
     "-DUSE_OPENMP=1",
     "-DNO_WARMUP=1",
     "-DCORE=CORE2",
     "-DNUM_THREADS=64",
     "-DDYNAMIC_ARCH=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/xianyi/OpenBLAS/archive/v0.3.24.tar.gz",
      "sha256": "ceadc5065da97bd92404cac7254da66cc6eb192679cf1002098688978d4d5132"
     }
    ]
   },
   "python3-modules.json",
   {
    "name": "json-c",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/json-c/json-c/archive/refs/tags/json-c-0.17-20230812.tar.gz",
      "sha256": "024d302a3aadcbf9f78735320a6d5aedf8b77876c8ac8bbb95081ca55054c7eb"
     }
    ]
   },
   {
    "name": "swig",
    "config-opts": [
     "--without-boost",
     "--without-pcre"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz",
      "sha256": "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d"
     }
    ]
   },
   {
    "name": "libmypaint",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mypaint/libmypaint/releases/download/v1.6.1/libmypaint-1.6.1.tar.xz",
      "sha256": "741754f293f6b7668f941506da07cd7725629a793108bb31633fb6c3eae5315f"
     }
    ]
   },
   {
    "name": "mypaint-brushes",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mypaint/mypaint-brushes/releases/download/v2.0.2/mypaint-brushes-2.0.2.tar.xz",
      "sha256": "7984a74edef94571d872d0629b224abaa956a36f632f5c5516b33d22e49eb566"
     }
    ]
   },
   {
    "name": "mypaint",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mypaint/mypaint.git",
      "tag": "v2.0.1",
      "commit": "478280f2da4d5377b8185c3cc3e3a0500b93749c"
     },
     {
      "type": "patch",
      "paths": [
       "patches/appdata.patch",
       "patches/missing-developer-name.patch",
       "patches/python-311.patch",
       "patches/mypaint-fix_missing_attr.patch"
      ]
     }
    ],
    "build-commands": [
     "python3 setup.py build",
     "python3 setup.py managed_install --prefix=${FLATPAK_DEST}"
    ]
   }
  ]
 }
}