{
 "app_id": "org.sil.dictionary-app-builder",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sil.dictionary-app-builder/master/org.sil.dictionary-app-builder.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=host",
  "--talk-name=org.freedesktop.FileManager1"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-21T13:33:40.261101+00:00",
 "manifest": {
  "app-id": "org.sil.dictionary-app-builder",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk17",
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--share=ipc",
   "--device=all",
   "--filesystem=host",
   "--system-talk-name=org.freedesktop.Udisks2",
   "--talk-name=org.freedesktop.FileManager1"
  ],
  "command": "dab-run.sh",
  "modules": [
   {
    "name": "xterm",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ThomasDickey/xterm-snapshots.git",
      "tag": "xterm-410",
      "commit": "6380a3eaed857c182ea6cfa78cd706966b2628d0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5272,
       "tag-template": "xterm-$version",
       "is-main-source": true
      }
     }
    ],
    "modules": [
     {
      "name": "libxmu",
      "buildsystem": "autotools",
      "cleanup": [
       "/include",
       "*.a"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://gitlab.freedesktop.org/xorg/lib/libxmu.git",
        "commit": "cc378e4f0cc2ab5b66d378050ba4956612a01197"
       }
      ]
     },
     {
      "name": "libXaw",
      "sources": [
       {
        "type": "archive",
        "url": "https://www.x.org/archive/individual/lib/libXaw-1.0.16.tar.xz",
        "sha256": "731d572b54c708f81e197a6afa8016918e2e06dfd3025e066ca642a5b8c39c8f"
       }
      ]
     },
     {
      "name": "ncurses",
      "sources": [
       {
        "type": "archive",
        "url": "https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz",
        "sha256": "6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159"
       }
      ]
     }
    ]
   },
   {
    "name": "openjdk17",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk17/install.sh",
     "/usr/lib/sdk/openjdk17/installjdk.sh",
     "ln -s /app/jdk \"/app/jdk$(awk -F\\\" '/JAVA_VERSION=/ {print $2}' /app/jdk/release)\""
    ]
   },
   {
    "name": "openjfx",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/lib/openjfx",
     "unzip -q -j -d /app/lib/openjfx openjfx.zip '*lib/*'"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "dest-filename": "openjfx.zip",
      "url": "https://download2.gluonhq.com/openjfx/17.0.11/openjfx-17.0.11_linux-x64_bin-sdk.zip",
      "sha256": "f46a1fbea32b83cca6715d74cba7d9c24ce320f1da2daf8ff852f133e9f15674"
     }
    ]
   },
   {
    "name": "dictionary-app-builder",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/dictionary-app-builder",
     "tar xf dictionary-app-builder.tgz -C /app/dictionary-app-builder",
     "install -Dm644 /app/dictionary-app-builder/app-icons/dictionary-app-builder.png /app/share/icons/hicolor/128x128/apps/org.sil.dictionary-app-builder.png",
     "install -Dm644 /app/dictionary-app-builder/app-icons/dictionary-app-builder.svg /app/share/icons/hicolor/scalable/apps/org.sil.dictionary-app-builder.svg",
     "desktop-file-install --dir /app/share/applications /app/dictionary-app-builder/flatpak/org.sil.dictionary-app-builder.desktop",
     "install -Dm644 /app/dictionary-app-builder/flatpak/org.sil.dictionary-app-builder.metainfo.xml -t /app/share/metainfo/",
     "install -Dm755 dab-run.sh /app/bin/dab-run.sh",
     "/usr/lib/sdk/node22/install-sdk.sh",
     "ln -s /app/node /app/dictionary-app-builder/tools/node"
    ],
    "cleanup": [
     "/dictionary-app-builder/app-icons",
     "/dictionary-app-builder/flatpak",
     "/dictionary-app-builder/*.sh"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "dab-run.sh",
      "commands": [
       "exec /app/jre/bin/java -Djava.io.tmpdir=\"/var/tmp\" --module-path \"/app/lib/openjfx\" --add-modules javafx.web,javafx.fxml,javafx.swing,javafx.media --add-opens=javafx.fxml/javafx.fxml=ALL-UNNAMED -jar /app/dictionary-app-builder/bin/dictionary-app-builder.jar \"$@\""
      ]
     },
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://sil-app-builders-linux-artifacts.s3.amazonaws.com/master/158/dictionary-app-builder.tgz",
      "sha256": "cc68ca2608a48d9c17ab30f7040d44aadf67eb6905db4967f090ad71943debba"
     }
    ]
   }
  ]
 }
}