{
 "app_id": "com.github.utsushi.Utsushi",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.utsushi.Utsushi/master/com.github.utsushi.Utsushi.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:07:50.049321+00:00",
 "manifest": {
  "app-id": "com.github.utsushi.Utsushi",
  "command": "utsushi",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=all",
   "--share=network"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/pkgconfig",
   "/share/devhelp",
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   {
    "name": "boost",
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.80.0/source/boost_1_80_0.tar.bz2",
      "sha256": "1e19565d82e43bc59209a168f5ac899d3ba471d55c7610c677d4ccf2c9c500c0"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=filesystem,iostreams,program_options,regex,system,thread,test",
     "./b2 headers",
     "./b2 install"
    ]
   },
   "shared-modules/gtk2/gtk2.json",
   {
    "name": "sigc++",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-documentation=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/libsigc++/2.10/libsigc++-2.10.8.tar.xz",
      "sha256": "235a40bec7346c7b82b6a8caae0456353dc06e71f14bc414bcc858af1838719a"
     }
    ],
    "cleanup": [
     "/lib/sigc++-2.0"
    ]
   },
   {
    "name": "glibmm",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/glibmm/2.66/glibmm-2.66.4.tar.xz",
      "sha256": "199ace5682d81b15a1d565480b4a950682f2db6402c8aa5dd7217d71edff81d5"
     }
    ],
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-documentation=false",
     "-Dbuild-examples=false"
    ],
    "cleanup": [
     "/lib/glibmm-2.4",
     "/lib/giomm-2.4",
     "/lib/libglibmm_generate_extra_defs*"
    ]
   },
   {
    "name": "cairomm",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-documentation=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/cairo/cairomm/-/archive/1.14.3/cairomm-1.14.3.tar.gz",
      "sha256": "7dab16c5698acb284f178048337465b463fbed01c49e10bfe48acb0a852d873e"
     }
    ],
    "cleanup": [
     "/lib/cairomm-1.0"
    ]
   },
   {
    "name": "pangomm",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/pangomm/2.46/pangomm-2.46.2.tar.xz",
      "sha256": "57442ab4dc043877bfe3839915731ab2d693fc6634a71614422fb530c9eaa6f4"
     }
    ],
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-documentation=false"
    ],
    "cleanup": [
     "/lib/pangomm-1.4"
    ]
   },
   {
    "name": "atkmm",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/atkmm/2.28/atkmm-2.28.3.tar.xz",
      "sha256": "7c2088b486a909be8da2b18304e56c5f90884d1343c8da7367ea5cd3258b9969"
     }
    ],
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-documentation=false"
    ],
    "cleanup": [
     "/lib/atkmm-1.6"
    ]
   },
   {
    "name": "gtkmm",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gtkmm/2.24/gtkmm-2.24.5.tar.xz",
      "sha256": "0680a53b7bf90b4e4bf444d1d89e6df41c777e0bacc96e9c09fc4dd2f5fe6b72"
     }
    ],
    "cleanup": [
     "/lib/gdkmm-2.4",
     "/lib/gtkmm-2.4"
    ]
   },
   {
    "name": "graphicsmagick",
    "config-opts": [
     "--enable-shared=yes"
    ],
    "cleanup": [
     "/bin/gm",
     "/bin/GraphicsMagick*config",
     "/lib/GraphicsMagick*",
     "/share/GraphicsMagick*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.42/GraphicsMagick-1.3.42.tar.xz",
      "sha256": "484fccfd2b2faf6c2ba9151469ece5072bcb91ba4ed73e75ed3d8e46c759d557"
     }
    ]
   },
   {
    "name": "utsushi",
    "build-options": {
     "cxxflags": "-Wno-error"
    },
    "config-opts": [
     "--with-boost-libdir=/app/lib",
     "--enable-udev-config=no",
     "--with-gtkmm",
     "--with-jpeg",
     "--with-tiff",
     "--with-magick",
     "--with-magick-pp"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/utsushi/utsushi.git",
      "commit": "839d06a5a80b353cb604eb9f7d352a1648ab1fdf"
     },
     {
      "type": "patch",
      "paths": [
       "0001-switch-to-uint_t.patch",
       "0002-makefile-am.patch"
      ]
     },
     {
      "type": "file",
      "path": "com.github.utsushi.Utsushi.metainfo.xml"
     },
     {
      "type": "file",
      "path": "com.github.utsushi.Utsushi.desktop"
     },
     {
      "type": "file",
      "path": "com.github.utsushi.Utsushi.png"
     },
     {
      "type": "file",
      "path": "utsushi-bin"
     }
    ],
    "post-install": [
     "install -Dm644 com.github.utsushi.Utsushi.desktop /app/share/applications/com.github.utsushi.Utsushi.desktop",
     "install -Dm644 com.github.utsushi.Utsushi.metainfo.xml /app/share/appdata/com.github.utsushi.Utsushi.metainfo.xml",
     "install -Dm644 com.github.utsushi.Utsushi.png /app/share/icons/hicolor/256x256/apps/com.github.utsushi.Utsushi.png",
     "rm /app/bin/utsushi",
     "install -Dm755 utsushi-bin /app/bin/utsushi"
    ]
   }
  ]
 }
}