{
 "app_id": "org.sil.scripture-app-builder",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sil.scripture-app-builder/master/org.sil.scripture-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",
  "--system-talk-name=org.freedesktop.Udisks2"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-20T12:29:35.647946+00:00",
 "manifest": {
  "app-id": "org.sil.scripture-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": "sab-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": "espeak-ng",
    "buildsystem": "autotools",
    "cleanup": [
     "*.a"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/espeak-ng/espeak-ng.git",
      "tag": "1.52.0",
      "commit": "4870adfa25b1a32b4361592f1be8a40337c58d6c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12958,
       "tag-template": "$version"
      }
     }
    ]
   },
   {
    "name": "python3-aeneas",
    "buildsystem": "simple",
    "build-commands": [
     "python3 -m pip install --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"meson-python\" \"pyproject-metadata\"",
     "python3 -m pip install --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"numpy\" --no-build-isolation",
     "tar -xzf aeneas-1.7.3.0.tar.gz",
     "cd aeneas-1.7.3.0 && patch -p0 < ../remove-numpy-import-check.patch && cd ..",
     "tar -czf aeneas-1.7.3.0-patched.tar.gz aeneas-1.7.3.0",
     "python3 -m pip install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} aeneas-1.7.3.0-patched.tar.gz --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/28/58/66db620a8a7ccb32633de9f403fe49f1b63c68ca94e5c340ec5cceeb9821/meson_python-0.18.0-py3-none-any.whl",
      "sha256": "3b0fe051551cc238f5febb873247c0949cd60ded556efa130aa57021804868e2"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/c0/57/e69a1de45ec7a99a707e9f1a5defa035a48de0cae2d8582451c72d2db456/pyproject_metadata-0.10.0-py3-none-any.whl",
      "sha256": "b1e439a9f7560f9792ee5975dcf5e89d2510b1fc84a922d7e5d665aa9102d966"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/e5/92/88d421001bb257588df4864ceca24d570e2e822db4f40f48737a78b648b2/aeneas-1.7.3.0.tar.gz",
      "sha256": "b492d8ba36f12cce69c29c35e7075857a9d036c4743cc8f4689922be980826da"
     },
     {
      "type": "file",
      "path": "patches/aeneas/remove-numpy-import-check.patch"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/d1/c2/fe97d779f3ef3b15f05c94a2f1e3d21732574ed441687474db9d342a7315/soupsieve-2.6-py3-none-any.whl",
      "sha256": "e72c4ff06e4fb6e4b5a9f0f55fe6e81514581fca1515028625d0f299c602ccc9"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/e7/6b/20c3a4b24751377aaa6307eb230b66701024012c29dd374999cc92983269/lxml-5.3.0.tar.gz",
      "sha256": "4e109ca30d1edec1ac60cdbe341905dc3b8f55b16855e03a54aaf59e51ec8c6f"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz",
      "sha256": "2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl",
      "sha256": "b80878c9f40111313e55da8ba20bdba06d8fa3969fc68304167741bbf9e082ed"
     }
    ],
    "modules": [
     {
      "name": "espeak",
      "no-autogen": true,
      "subdir": "src",
      "cleanup": [
       "*.a"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://salsa.debian.org/a11y-team/espeak.git",
        "commit": "0dd86a59e84a475bdd809a3aec7bc95a460ad5a6"
       },
       {
        "type": "patch",
        "path": "patches/espeak/FlatpakEspeak.patch"
       }
      ]
     }
    ]
   },
   {
    "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": "scripture-app-builder",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/scripture-app-builder",
     "tar xf scripture-app-builder.tgz -C /app/scripture-app-builder",
     "install -Dm644 /app/scripture-app-builder/app-icons/scripture-app-builder.png /app/share/icons/hicolor/128x128/apps/org.sil.scripture-app-builder.png",
     "install -Dm644 /app/scripture-app-builder/app-icons/scripture-app-builder.svg /app/share/icons/hicolor/scalable/apps/org.sil.scripture-app-builder.svg",
     "desktop-file-install --dir /app/share/applications /app/scripture-app-builder/flatpak/org.sil.scripture-app-builder.desktop",
     "install -Dm644 /app/scripture-app-builder/flatpak/org.sil.scripture-app-builder.metainfo.xml -t /app/share/metainfo/",
     "install -Dm755 sab-run.sh /app/bin/sab-run.sh",
     "/usr/lib/sdk/node22/install-sdk.sh",
     "ln -s /app/node /app/scripture-app-builder/tools/node"
    ],
    "cleanup": [
     "/scripture-app-builder/app-icons",
     "/scripture-app-builder/flatpak",
     "/scripture-app-builder/*.sh"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "sab-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/scripture-app-builder/bin/scripture-app-builder.jar \"$@\""
      ]
     },
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://sil-app-builders-linux-artifacts.s3.amazonaws.com/master/158/scripture-app-builder.tgz",
      "sha256": "ac07da695b581cc27a95c6b232f607e07b4b1f711a7e7e69f9987d84656b0e7f"
     }
    ]
   }
  ]
 }
}