{
 "app_id": "net.nmlgc.rec98.sh01",
 "source_url": "https://raw.githubusercontent.com/flathub/net.nmlgc.rec98.sh01/master/net.nmlgc.rec98.sh01.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:13:36.898749+00:00",
 "manifest": {
  "id": "net.nmlgc.rec98.sh01",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=all",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=ipc"
  ],
  "command": "GIAN07",
  "modules": [
   {
    "name": "ttf-ipa-mona",
    "sources": [
     {
      "type": "archive",
      "url": "https://web.archive.org/web/20111108024313if_/http://www.geocities.jp/ipa_mona/opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz",
      "dest-filename": "ttf-ipa-mona.tar",
      "sha256": "cb7b6975faf5caa070ffa1699a241d1c093f3b74c54696e5af23b5bc3b118a44"
     }
    ],
    "buildsystem": "simple",
    "subdir": "fonts",
    "build-commands": [
     "install -Dm644 ipag-mona.ttf -t \"$FLATPAK_DEST/share/fonts/TTF/\"",
     "install -Dm644 COPYING.font.ja -t \"$FLATPAK_DEST/share/licenses/ttf-ipa-mona/\""
    ]
   },
   {
    "name": "pango",
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.gnome.org/GNOME/pango/-/archive/1.56.0/pango-1.56.0.tar.bz2",
      "sha256": "d444ef9a8cec24b6ffc989a4e23bc9c60c290b7218327847a4e712e1c7a9ca70"
     },
     {
      "type": "patch",
      "path": "pango-workaround-harfbuzz-issue-4311.patch"
     }
    ],
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild-testsuite=false",
     "-Dbuild-examples=false",
     "-Dintrospection=disabled",
     "-Dxft=disabled"
    ],
    "cleanup": [
     "/bin/pango*",
     "/include",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "tup",
    "sources": [
     {
      "type": "archive",
      "url": "https://gittup.org/tup/releases/tup-v0.8.tar.gz",
      "sha512": "3f09a3defc97d174ed85d84679ad4a41bd83e12d84fa151a38c2aedd613f2739989fd9ebeb2d316bd716cf5afd3aead64d7d0cad968e705fe4092c5e7fd9a0ee"
     },
     {
      "type": "patch",
      "path": "tup-disable-unconditional-x86-arch-siblings.patch"
     },
     {
      "type": "script",
      "dest-filename": "tup.config",
      "commands": [
       "CONFIG_TUP_USE_SYSTEM_PCRE=y",
       "CONFIG_TUP_USE_SYSTEM_SQLITE=y",
       "CONFIG_TUP_SERVER=ldpreload",
       "CONFIG_X86_ARCH_SIBLINGS=n"
      ]
     }
    ],
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "TUP_SERVER": "ldpreload"
     }
    },
    "build-commands": [
     "./bootstrap.sh",
     "install -Dm755 ./build/tup -t $FLATPAK_DEST/bin/",
     "install -Dm755 ./build/tup-ldpreload.so -t $FLATPAK_DEST/bin/"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "sh01",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nmlgc/ssg.git",
      "tag": "P0326"
     }
    ],
    "buildsystem": "simple",
    "build-options": {
     "cflags": "-isystem /app/include/c++/v1/ -DPATH_XDG_DATA_HOME_HAS_APP_ID -Wp,-U_FORTIFY_SOURCE",
     "env": {
      "COMPILER_PATH": "/app/lib",
      "APP_ID": "net.nmlgc.rec98.sh01"
     }
    },
    "build-commands": [
     "PATH_SKELETON=\"/app/share/skel\" ./build_linux.sh bin/GIAN07",
     "ROOT=\"/app/\" ./install_linux.sh \"$APP_ID\"",
     "install -Dm644 ./GIAN07/net.nmlgc.rec98.sh01.metainfo.xml -t /app/share/metainfo"
    ]
   }
  ]
 }
}