{
 "app_id": "org.lyx.LyX",
 "source_url": "https://raw.githubusercontent.com/flathub/org.lyx.LyX/master/org.lyx.LyX.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--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": 10,
 "fetched_at": "2026-09-20T15:34:44.520534+00:00",
 "manifest": {
  "app-id": "org.lyx.LyX",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "lyx",
  "rename-desktop-file": "lyx.desktop",
  "rename-icon": "lyx",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--persist=.lyx",
   "--filesystem=home",
   "--env=PATH=/usr/bin:/app/bin:/app/plugins/maxima/bin",
   "--env=TEXMFVAR=$XDG_CACHE_HOME"
  ],
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.texlive": {
    "version": "25.08",
    "directory": "texlive",
    "autodelete": false
   },
   "org.lyx.LyX.Plugin": {
    "versions": "stable;beta;test",
    "directory": "plugins",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true,
    "add-ld-path": "lib"
   },
   "io.github.wxmaxima_developers.wxMaxima.Plugin.maxima": {
    "versions": "stable;test;master",
    "directory": "plugins/maxima",
    "subdirectories": false,
    "no-autodownload": true,
    "autodelete": true,
    "add-ld-path": "lib"
   }
  },
  "modules": [
   {
    "name": "texliveYextensions",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/texlive",
     "install -d /app/plugins"
    ]
   },
   {
    "name": "ghostscript",
    "config-opts": [
     "--disable-cups"
    ],
    "build-options": {
     "ldflags": "-L/app/lib",
     "arch": {
      "aarch64": {
       "cppflags": "-DPNG_ARM_NEON_OPT=0"
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10071/ghostscript-10.07.1.tar.gz",
      "sha512": "480aef1284dbe4d059dd0f9cc60dd5772d5093239df68b838f7f4f7d2efd77de8f03a7baeffbdbe65126a660c1c169137dd7d8cc28dd3bab59cd286a24ca1491",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases/latest",
       "version-query": ".name | split(\" \") | .[1]",
       "url-query": ".assets[] | select(.name|test(\"^ghostscript-(.*).tar.gz$\")) | .browser_download_url"
      }
     }
    ]
   },
   {
    "name": "ImageMagick",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ImageMagick/ImageMagick.git",
      "tag": "7.1.2-29",
      "commit": "360eda553586e389c9c725fc49df94f209a8a3c7",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+-[\\d]+)$"
      }
     }
    ]
   },
   {
    "name": "ed",
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/ed/ed-1.22.5.tar.lz",
      "sha256": "56e107ddc2f29dad6690376c15bf9751509e1ee3b8241710e44edbe5c3a158cc",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 659,
       "url-template": "https://ftp.gnu.org/gnu/ed/ed-$version.tar.lz"
      }
     }
    ]
   },
   {
    "name": "rcs",
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/rcs/rcs-5.10.1.tar.lz",
      "sha256": "43ddfe10724a8b85e2468f6403b6000737186f01e60e0bd62fde69d842234cc5",
      "x-checker-data": {
       "type": "anitya",
       "is-important": true,
       "project-id": 4167,
       "url-template": "https://ftp.gnu.org/gnu/rcs/rcs-$version.tar.lz"
      }
     }
    ]
   },
   {
    "name": "pip",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 -t /app/bin pip.pyz",
     "ln -s /app/bin/pip.pyz /app/bin/pip3 && ln -s /app/bin/pip.pyz /app/bin/pip"
    ],
    "sources": [
     {
      "type": "file",
      "dest-filename": "pip.pyz",
      "url": "https://bootstrap.pypa.io/pip/zipapp/pip-25.1.pyz",
      "sha256": "42d5602660591dcb553876642bd4da47859d1de20324fbd461c631e520d5847f"
     }
    ]
   },
   {
    "name": "fonts",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/share/fonts",
     "cp static/OTF/* /app/share/fonts/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/alerque/libertinus/releases/download/v7.051/Libertinus-7.051.tar.zst",
      "sha256": "250677c929d3775a30913643594379af264ac2ef2801035aa1dcbe30b9be23a6",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/alerque/libertinus/releases/latest",
       "version-query": ".name | split(\" \") | .[1]",
       "url-query": ".assets[] | select(.name|test(\"^Libertinus-(.*).tar.zst$\")) | .browser_download_url"
      }
     }
    ]
   },
   {
    "name": "dictEs-aspell",
    "buildsystem": "simple",
    "build-commands": [
     "./configure",
     "make datadir=/app/share/dicts dictdir=/app/share/dicts",
     "make datadir=/app/share/dicts dictdir=/app/share/dicts install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-1.11-2.tar.bz2",
      "sha256": "ad367fa1e7069c72eb7ae37e4d39c30a44d32a6aa73cedccbd0d06a69018afcc",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 16361,
       "url-template": "https://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-$version.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "dictEn-aspell",
    "buildsystem": "simple",
    "build-commands": [
     "./configure",
     "make datadir=/app/share/dicts dictdir=/app/share/dicts",
     "make datadir=/app/share/dicts dictdir=/app/share/dicts install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-2026.02.25-0.tar.bz2",
      "sha256": "77a5cb437c45d1115f3b593802c20651d8c93803ed1073278dc1a1240016f10d",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7838,
       "url-template": "https://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-$version.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "lyx",
    "config-opts": [
     "--with-included-hunspell",
     "--enable-qt6"
    ],
    "post-install": [
     "rm -r /app/share/metainfo",
     "install -Dm644 org.lyx.LyX.appdata.xml /app/share/appdata/org.lyx.LyX.appdata.xml",
     "install -Dm755 evince /app/bin/evince",
     "mv /app/bin/lyx /app/bin/_lyx",
     "install -Dm755 lyx -t /app/bin/",
     "install -Dm644 first_run.lyx -t /app/share/lyx-flatpak/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.lip6.fr/pub/lyx/stable/2.5.x/lyx-2.5.3.tar.xz",
      "sha256": "85faab35915974be1701cbcc6a18606a34e62cc7c86e0336f152acbc6156a8a6",
      "x-checker-data": {
       "type": "anitya",
       "is-main-source": true,
       "is-important": true,
       "project-id": 1864,
       "url-template": "https://ftp.lip6.fr/pub/lyx/stable/$major.$minor.x/lyx-$version.tar.xz"
      },
      "mirror-urls": [
       "https://mirrors.ocf.berkeley.edu/lyx/stable/2.5.x/lyx-2.5.3.tar.xz"
      ]
     },
     {
      "type": "file",
      "path": "wrapper/lyx"
     },
     {
      "type": "file",
      "path": "wrapper/first_run.lyx"
     },
     {
      "type": "file",
      "path": "wrapper/evince"
     },
     {
      "type": "file",
      "path": "org.lyx.LyX.appdata.xml"
     }
    ]
   }
  ]
 }
}