{
 "app_id": "io.seamly.seamly2d",
 "source_url": "https://raw.githubusercontent.com/flathub/io.seamly.seamly2d/master/io.seamly.seamly2d.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=cups",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:12:56.385731+00:00",
 "manifest": {
  "app-id": "io.seamly.seamly2d",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "seamly2d",
  "rename-desktop-file": "seamly2d.desktop",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=cups",
   "--filesystem=home",
   "--device=dri",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "poppler",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DENABLE_BOOST=OFF",
     "-DENABLE_QT5=OFF",
     "-DENABLE_QT6=OFF",
     "-DENABLE_GLIB=OFF",
     "-DENABLE_NSS3=OFF",
     "-DBUILD_GTK_TESTS=OFF",
     "-DBUILD_QT5_TESTS=OFF",
     "-DBUILD_QT6_TESTS=OFF",
     "-DBUILD_CPP_TESTS=OFF",
     "-DBUILD_MANUAL_TESTS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-26.08.0.tar.xz",
      "sha256": "dc906e68cea698109706ac6aa3d2c9d4512fcfcac42d90b8afcda486d1b9abd0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3686,
       "url-template": "https://poppler.freedesktop.org/poppler-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "xerces-c",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app --disable-network --enable-transcoder-iconv --enable-xmlch-char16_t --enable-mutexmgr-standard",
     "make -j$FLATPAK_BUILDER_N_JOBS",
     "make install-strip"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.2.4.tar.gz",
      "sha256": "3d8ec1c7f94e38fee0e4ca5ad1e1d9db23cbf3a10bba626f6b4afa2dedafe5ab"
     }
    ]
   },
   {
    "name": "seamly2d",
    "buildsystem": "qmake",
    "config-opts": [
     "-config",
     "release",
     "CONFIG+=noDebugSymbols",
     "CONFIG+=noTests"
    ],
    "post-install": [
     "desktop-file-edit --set-icon ${FLATPAK_ID} --set-key Exec --set-value 'seamly2d %F' /app/share/applications/seamly2d.desktop",
     "install -Dm644 share/img/Seamly2D_logo_512x512.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 io.seamly.seamly2d.metainfo.xml -t /app/share/metainfo",
     "install -Dm644 dist/debian/seamly2d.sharedmimeinfo /app/share/mime/packages/${FLATPAK_ID}.xml",
     "mv /app/share/applications/seamlyme.desktop /app/share/applications/${FLATPAK_ID}.seamlyme.desktop",
     "desktop-file-edit --set-icon ${FLATPAK_ID}.seamlyme --set-key Exec --set-value 'seamlyme %F' /app/share/applications/${FLATPAK_ID}.seamlyme.desktop",
     "install -Dm644 dist/seamlyme.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.seamlyme.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FashionFreedom/Seamly2D.git",
      "tag": "v2026.9.14.145",
      "commit": "c6f2f4ab054d05d6ad62a5d5a43c8ad5e28c95bb",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/FashionFreedom/Seamly2D/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag",
       "timestamp-query": ".published_at"
      }
     },
     {
      "type": "patch",
      "path": "0001-flatpak.patch"
     },
     {
      "type": "patch",
      "path": "0001-Fix-patch-to-link-xerces-library-for-flatpak.patch"
     },
     {
      "type": "file",
      "path": "io.seamly.seamly2d.metainfo.xml"
     },
     {
      "type": "shell",
      "commands": [
       "ver=$(git describe --tags); ./scripts/version.sh ${ver:1}"
      ]
     }
    ]
   }
  ]
 }
}