{
 "app_id": "com.github.xournalpp.xournalpp",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.xournalpp.xournalpp/master/com.github.xournalpp.xournalpp.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=host",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=org.gtk.vfs.*"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T16:07:55.447334+00:00",
 "manifest": {
  "app-id": "com.github.xournalpp.xournalpp",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.texlive": {
    "directory": "extensions",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true,
    "version": "25.08"
   }
  },
  "command": "xournalpp-wrapper",
  "rename-mime-icons": [
   "application-x-xopp",
   "application-x-xopt",
   "application-x-xojpp"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--filesystem=host",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--metadata=X-DConf=migrate-path=/com/github/xournalpp/xournalpp/",
   "--env=TEXMFVAR=$XDG_CACHE_HOME/texmf-var",
   "--persist=.xournalpp",
   "--filesystem=xdg-run/gvfs",
   "--filesystem=xdg-run/gvfsd",
   "--talk-name=org.gtk.vfs.*",
   "--env=PATH=/app/bin:/app/extensions/bin:/app/extensions/bin/x86_64-linux:/app/extensions/bin/aarch64-linux:/usr/bin:/app/tinytex/bin/x86_64-linux"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/man",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/lua5.4/lua-5.4.json",
   {
    "name": "sourceview4",
    "buildsystem": "meson",
    "config-opts": [
     "-Dinstall_tests=false",
     "-Dgtk_doc=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gtksourceview/4.8/gtksourceview-4.8.4.tar.xz",
      "sha256": "7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d"
     }
    ]
   },
   {
    "name": "LuaGObject",
    "buildsystem": "meson",
    "config-opts": [
     "--prefix=/app"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/vtrlx/LuaGObject",
      "commit": "63c8099190c8830e9ba40dba1e48d7b000c7714e",
      "tag": "0.10.5",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "poppler",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_INSTALL_LIBDIR=/app/lib",
     "-DCMAKE_INSTALL_INCLUDEDIR=/app/include",
     "-DENABLE_QT5=OFF",
     "-DENABLE_QT6=OFF",
     "-DENABLE_CPP=OFF",
     "-DENABLE_BOOST=OFF",
     "-DENABLE_LIBOPENJPEG=openjpeg2"
    ],
    "cleanup": [
     "/bin"
    ],
    "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": "poppler-data",
    "buildsystem": "cmake-ninja",
    "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,
       "url-template": "https://poppler.freedesktop.org/poppler-data-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libzip",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_INSTALL_LIBDIR=/app/lib",
     "-DCMAKE_INSTALL_INCLUDEDIR=/app/include"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://libzip.org/download/libzip-1.11.4.tar.xz",
      "sha256": "8a247f57d1e3e6f6d11413b12a6f28a9d388de110adc0ec608d893180ed7097b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10649,
       "url-template": "https://libzip.org/download/libzip-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libportaudiocpp",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-cxx"
    ],
    "make-args": [
     "-j1"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz",
      "sha256": "5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/*.a",
     "/lib/*.la",
     "/lib/pkgconfig",
     "/man",
     "/share/aclocal",
     "/share/doc",
     "/share/gtk-doc",
     "/share/man",
     "/share/pkgconfig"
    ]
   },
   {
    "name": "qpdf",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/qpdf/qpdf",
      "tag": "v12.4.1",
      "commit": "c37f83ae468abb6cc741f43b2f6fdeb66e550ffb",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "xournalpp",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DFETCHCONTENT_SOURCE_DIR_CPPTRACE=/run/build/xournalpp/cpptrace-src"
    ],
    "builddir": true,
    "post-install": [
     "./cmake/postinst configure"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/xournalpp/xournalpp",
      "commit": "104f89826a9b1e2d0c098cea58639d6686f78526",
      "tag": "v1.3.7",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "git",
      "url": "https://github.com/jeremy-rifkin/cpptrace.git",
      "commit": "3db8da80111171c219ab5839905771386bee06b3",
      "tag": "v1.0.4",
      "dest": "cpptrace-src",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "texlive_extension",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/extensions"
    ]
   },
   {
    "name": "tinytex",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/tinytex",
     "tar xf TinyTeX-v2024.01.tar.gz -C /app/tinytex/ --strip-components 1",
     "unzip -d /app/tinytex/texmf-dist/tex/latex/ scontents-2.0.zip",
     "cd /app/tinytex/texmf-dist/tex/latex/scontents/",
     "/app/tinytex/bin/*/latex -output-directory=/app/tinytex/texmf-dist/tex/latex/scontents scontents.ins",
     "unzip -d /app/tinytex/texmf-dist/ pgfplots_1.17.tds.zip",
     "/app/tinytex/bin/*/mktexlsr",
     "/app/tinytex/bin/*/tlmgr remove --force --no-depends $(cat pkgs-remove.txt | tr '\\n' ' ')",
     "rm -rf /app/tinytex/texmf-dist/doc/"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/rstudio/tinytex-releases/releases/download/v2024.01/TinyTeX-v2024.01.tar.gz",
      "sha256": "5656473061e9d3aafe14e602aef854213be730b24aa8a77eafae12f521c5d9d9"
     },
     {
      "type": "file",
      "url": "https://github.com/pablgonz/scontents/releases/download/v2.0/scontents-2.0.zip",
      "sha256": "7512cf6fbba96aab93c1e099cdb104861b2ac0c4d0c59f9a999e4003ec42a79d"
     },
     {
      "type": "file",
      "url": "https://github.com/pgf-tikz/pgfplots/releases/download/1.17/pgfplots_1.17.tds.zip",
      "sha256": "6fdeb9af837a46e9e7aaf012f8cb40277d8d234814dd9da9aff7fc27664fc2cf"
     },
     {
      "type": "file",
      "path": "pkgs-remove.txt"
     }
    ]
   }
  ]
 }
}