{
 "app_id": "me.sergiotarxz.JapaChar",
 "source_url": "https://raw.githubusercontent.com/flathub/me.sergiotarxz.JapaChar/master/me.sergiotarxz.JapaChar.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:13:11.862289+00:00",
 "manifest": {
  "id": "me.sergiotarxz.JapaChar",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "finish-args": [
   "--share=ipc",
   "--device=dri",
   "--socket=fallback-x11",
   "--socket=wayland"
  ],
  "command": "japachar",
  "modules": [
   {
    "name": "perl",
    "no-autogen": true,
    "config-opts": [
     "-des",
     "-Duseshrplib"
    ],
    "build-options": {
     "cflags": "-fPIC",
     "ldflags": "-fpic"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www.cpan.org/src/5.0/perl-5.40.1.tar.gz",
      "sha256": "02f8c45bb379ed0c3de7514fad48c714fd46be8f0b536bfd5320050165a1ee26"
     },
     {
      "type": "shell",
      "commands": [
       "ln -s configure{.gnu,}"
      ]
     }
    ],
    "post-install": [
     "chmod -R u+w /app/lib/perl5"
    ],
    "cleanup": [
     "/bin/corelist",
     "/bin/cpan",
     "/bin/enc2xs",
     "/bin/encguess",
     "/bin/h2ph",
     "/bin/h2xs",
     "/bin/instmodsh",
     "/bin/json_pp",
     "/bin/libnetcfg",
     "/bin/perlbug",
     "/bin/perldoc",
     "/bin/perlivp",
     "/bin/perlthanks",
     "/bin/piconv",
     "/bin/pl2pm",
     "/bin/pod*",
     "/bin/prove",
     "/bin/ptar*",
     "/bin/shasum",
     "/bin/splain",
     "/bin/xsubpp",
     "/bin/zipdetails",
     "/include",
     "/man",
     "*.pod"
    ]
   },
   {
    "name": "perl-libs",
    "buildsystem": "simple",
    "build-commands": [
     "perl-libs/install.sh"
    ],
    "post-install": [
     "chmod -Rf u+w /app/lib/perl5/site_perl"
    ],
    "sources": [
     "generated-sources.json"
    ],
    "cleanup": [
     "/bin",
     "/man"
    ]
   },
   {
    "name": "japachar",
    "buildsystem": "simple",
    "build-commands": [
     "cd JapaCharSource; perl Build.PL",
     "cd JapaCharSource; perl Build build",
     "cp -vr JapaCharSource ${FLATPAK_DEST}/JapaChar",
     "glib-compile-resources --sourcedir=${FLATPAK_DEST}/JapaChar ${FLATPAK_DEST}/JapaChar/resources.xml",
     "install -Dm644 JapaCharSource/me.sergiotarxz.JapaChar.desktop -t /app/share/applications/",
     "install -Dm755 JapaCharSource/run.sh /app/bin/japachar",
     "install -Dm644 JapaCharSource/me.sergiotarxz.JapaChar-256.png /app/share/icons/hicolor/256x256/apps/me.sergiotarxz.JapaChar.png",
     "install -Dm644 JapaCharSource/me.sergiotarxz.JapaChar.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sergiotarxz/Japachar",
      "commit": "b5a21489af211ae16ea9014bc101e13a0caf22b1",
      "tag": "v2.00-rc4",
      "dest": "JapaCharSource"
     }
    ]
   }
  ]
 }
}