{
 "app_id": "org.kde.okular.kirigami",
 "source_url": "https://raw.githubusercontent.com/flathub/org.kde.okular.kirigami/master/org.kde.okular.kirigami.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=cups",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 21,
 "fetched_at": "2026-09-19T15:44:22.036183+00:00",
 "manifest": {
  "id": "org.kde.okular.kirigami",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "okularkirigami",
  "rename-icon": "okular",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=cups",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=wayland"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib*.la",
   "/lib/cmake",
   "/share/man",
   "/share/doc",
   "/share/pkgconfig",
   "/share/cmake"
  ],
  "modules": [
   {
    "name": "gnustep-make",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app",
     "make -j $FLATPAK_BUILDER_N_JOBS install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/gnustep/tools-make/archive/make-2_9_3.tar.gz",
      "sha256": "aad12caecb0398b099f3b8b0282cecc3f01a9f371200641b2e1e535ae6ee2543",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1220,
       "stable-only": true,
       "url-template": "https://github.com/gnustep/tools-make/archive/make-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "gnustep",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app",
     "make -j $FLATPAK_BUILDER_N_JOBS install",
     "ls /app/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/gnustep/libs-base/archive/refs/tags/base-1_31_1.tar.gz",
      "sha256": "612e4415efc486c9e7017b00b28b0e122dc739d29b8e5d57ce79bf1a86a9862b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 9105,
       "stable-only": true,
       "url-template": "https://github.com/gnustep/libs-base/archive/refs/tags/base-$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "7b51c1bb4ed0b1777db2f018eadaba89f00bf0c5.patch"
     }
    ]
   },
   {
    "name": "unarchiver",
    "buildsystem": "simple",
    "build-options": {
     "cflags": "-Wno-int-conversion"
    },
    "build-commands": [
     "sed -s -i 's#/usr/include/GNUstep#/app/include#g' */Makefile.linux",
     "make -C XADMaster -j $FLATPAK_BUILDER_N_JOBS -f Makefile.linux",
     "install -m755 XADMaster/unar XADMaster/lsar /app/bin/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/MacPaw/XADMaster/archive/refs/tags/v1.10.8.tar.gz",
      "sha256": "652953d7988b3c33f4f52b61c357afd1a7c2fc170e5e6e2219f4432b0c4cd39f",
      "strip-components": 1,
      "dest": "XADMaster",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5041,
       "stable-only": true,
       "url-template": "https://github.com/MacPaw/XADMaster/archive/refs/tags/v$version.tar.gz"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/MacPaw/universal-detector/archive/refs/tags/1.1.tar.gz",
      "sha256": "8e8532111d0163628eb828a60d67b53133afad3f710b1967e69d3b8eee28a811",
      "strip-components": 1,
      "dest": "UniversalDetector"
     }
    ]
   },
   {
    "name": "discount",
    "buildsystem": "simple",
    "build-commands": [
     "./configure.sh --prefix=/app --enable-all-features --with-fenced-code --shared",
     "sed -e 's|/sbin/ldconfig|/sbin/ldconfig -n|' -i librarian.sh",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Orc/discount/archive/v3.0.2.0.tar.gz",
      "sha256": "99f6db36d3fff6c99acd21d4c6096176d4ac8785eab319d0faf77ad995b8b7c5",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12139,
       "stable-only": true,
       "url-template": "https://github.com/Orc/discount/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=system",
     "./b2 -j $FLATPAK_BUILDER_N_JOBS install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.92.0/source/boost_1_92_0.tar.bz2",
      "sha256": "5c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6845,
       "stable-only": true,
       "url-template": "https://archives.boost.io/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "libzip",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://libzip.org/download/libzip-1.11.4.tar.xz",
      "sha256": "8a247f57d1e3e6f6d11413b12a6f28a9d388de110adc0ec608d893180ed7097b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10649,
       "stable-only": true,
       "url-template": "https://libzip.org/download/libzip-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "ebook-tools",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/ebook-tools/ebook-tools/0.2.2/ebook-tools-0.2.2.tar.gz",
      "sha256": "cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 17771,
       "stable-only": true,
       "url-template": "https://downloads.sourceforge.net/project/ebook-tools/ebook-tools/$version/ebook-tools-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "djvulibre",
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/djvu/djvulibre-3.5.30.tar.gz",
      "sha256": "ee5e457d4cfebe566f94b99e5e3d3cc7f5c79ddb741c2ac2ba2e456f00329644",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10159,
       "stable-only": true,
       "url-template": "http://downloads.sourceforge.net/djvu/djvulibre-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "ghostscript",
    "config-opts": [
     "--disable-cups",
     "--without-tesseract"
    ],
    "make-args": [
     "so"
    ],
    "make-install-args": [
     "soinstall"
    ],
    "post-install": [
     "mv -f ${FLATPAK_DEST}/bin/{gsc,gs} "
    ],
    "cleanup": [
     "/share/ghostscriptexamples"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10080/ghostscript-10.08.0.tar.gz",
      "sha256": "caf199e3f233f1290b27d0972d636f66c303355f2353309b7bfddf1edda06b3d",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1157,
       "stable-only": true,
       "url-template": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${major}0$minor$patch/ghostscript-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libspectre",
    "sources": [
     {
      "type": "archive",
      "url": "http://libspectre.freedesktop.org/releases/libspectre-0.2.12.tar.gz",
      "sha256": "55a7517cd3572bd2565df0cf450944a04d5273b279ebb369a895391957f0f960",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1724,
       "stable-only": true,
       "url-template": "http://libspectre.freedesktop.org/releases/libspectre-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "poppler-data",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz",
      "sha256": "c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3687,
       "stable-only": true,
       "url-template": "https://poppler.freedesktop.org/poppler-data-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "poppler",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBUILD_GTK_TESTS=OFF",
     "-DBUILD_QT5_TESTS=OFF",
     "-DBUILD_QT6_TESTS=OFF",
     "-DBUILD_CPP_TESTS=OFF",
     "-DENABLE_UTILS=OFF",
     "-DENABLE_CPP=OFF",
     "-DENABLE_GLIB=OFF",
     "-DENABLE_QT5=OFF",
     "-DENABLE_QT6=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-26.08.0.tar.xz",
      "sha256": "dc906e68cea698109706ac6aa3d2c9d4512fcfcac42d90b8afcda486d1b9abd0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3686,
       "stable-only": true,
       "url-template": "https://poppler.freedesktop.org/poppler-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "inih",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddefault_library=shared",
     "-Ddistro_install=true",
     "-Dwith_INIReader=true"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/benhoyt/inih/archive/refs/tags/r62.tar.gz",
      "sha256": "9c15fa751bb8093d042dae1b9f125eb45198c32c6704cd5481ccde460d4f8151",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 11600,
       "stable-only": true,
       "url-template": "https://github.com/benhoyt/inih/archive/refs/tags/r$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "exiv2",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Exiv2/exiv2/archive/refs/tags/v0.28.9.tar.gz",
      "sha256": "700b76b97695b2fab4ef8c79619c68ae57d09e0c130724791cafbd39e0eb4aef",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 769,
       "stable-only": true,
       "url-template": "https://github.com/Exiv2/exiv2/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "pcre",
    "config-opts": [
     "--enable-unicode-properties"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://prdownloads.sourceforge.net/pcre/pcre-8.45.tar.bz2",
      "sha256": "4dae6fdcd2bb0bb6c37b5f97c33c2be954da743985369cddac3546e3218bffb8"
     }
    ]
   },
   {
    "name": "libkexiv2",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DQT_MAJOR_VERSION=6"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.kde.org/stable/release-service/26.08.1/src/libkexiv2-26.08.1.tar.xz",
      "sha256": "d50cc3e641d1d9dd6a0f2ea5cd8e0e210e7386f11ba2729b0ade2785400b0e31",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8763,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/release-service/$version/src/libkexiv2-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "kdegraphics-mobipocket",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DQT_MAJOR_VERSION=6"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.kde.org/stable/release-service/26.08.1/src/kdegraphics-mobipocket-26.08.1.tar.xz",
      "sha256": "69ec5076b02332f23d96cfd7b560ae716726bfab2984ce0285e0a67c1270522a",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8763,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/release-service/$version/src/kdegraphics-mobipocket-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "phonon-vlc",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DPHONON_BUILD_QT5=OFF",
     "-DPHONON_BUILD_DESIGNER_PLUGIN=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.kde.org/stable/phonon/phonon-backend-vlc/0.12.0/phonon-backend-vlc-0.12.0.tar.xz",
      "sha256": "338479dc451e4b94b3ca5b578def741dcf82f5c626a2807d36235be2dce7c9a5",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 229046,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/phonon/phonon-backend-vlc/$version/phonon-backend-vlc-$version.tar.xz"
      }
     }
    ],
    "modules": [
     {
      "name": "phonon",
      "config-opts": [
       "-DBUILD_TESTING=OFF",
       "-DPHONON_BUILD_QT5=OFF",
       "-DPHONON_BUILD_QT6=ON"
      ],
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "archive",
        "url": "https://download.kde.org/stable/phonon/4.12.0/phonon-4.12.0.tar.xz",
        "sha256": "3287ffe0fbcc2d4aa1363f9e15747302d0b080090fe76e5f211d809ecb43f39a",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 229047,
         "stable-only": true,
         "url-template": "https://download.kde.org/stable/phonon/$version/phonon-$version.tar.xz"
        }
       }
      ]
     },
     {
      "name": "libvlc",
      "config-opts": [
       "BUILDCC=gcc",
       "--disable-lua",
       "--disable-a52",
       "--disable-qt",
       "--disable-ncurses",
       "--disable-udev"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://get.videolan.org/vlc/3.0.23/vlc-3.0.23.tar.xz",
        "sha256": "e891cae6aa3ccda69bf94173d5105cbc55c7a7d9b1d21b9b21666e69eff3e7e0",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 6504,
         "stable-only": true,
         "url-template": "https://get.videolan.org/vlc/$version/vlc-$version.tar.xz"
        }
       },
       {
        "type": "patch",
        "path": "vlc-ignore-time-for-cache.patch"
       }
      ]
     }
    ]
   },
   {
    "name": "okular",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DOKULAR_UI=mobile"
    ],
    "post-install": [
     "mv /app/bin/okularkirigami /app/bin/okularkirigami-bin",
     "install -Dm755 ../okularkirigami-wrapper /app/bin/okularkirigami"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.kde.org/stable/release-service/26.08.1/src/okular-26.08.1.tar.xz",
      "sha256": "7eb26c37ee42b6657526aeddd1bce71c5556e3865772a677f49b68deb46885d6",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8763,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/release-service/$version/src/okular-$version.tar.xz"
      }
     },
     {
      "type": "script",
      "dest-filename": "okularkirigami-wrapper",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec /app/bin/okularkirigami-bin \"$@\""
      ]
     }
    ]
   }
  ]
 }
}