{
 "app_id": "org.artisan_scope.artisan",
 "source_url": "https://raw.githubusercontent.com/flathub/org.artisan_scope.artisan/master/org.artisan_scope.artisan.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-17T16:14:11.961986+00:00",
 "manifest": {
  "id": "org.artisan_scope.artisan",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": "6.10",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "6.10",
  "cleanup-commands": [
   "for f in /usr/share/fonts/dejavu/*.ttf; do find /app -name `basename $f` -execdir ln -sf \"$f\" \\; ; done",
   "find $FLATPAK_DEST/lib/python* -type d -name tests | grep -v /numpy/ | xargs rm -Rf",
   "python3 <<EOF\nfrom os import listdir, remove\nfrom os.path import basename, dirname, join\nfrom yoctopuce.yocto_api import YAPI\nYAPI.yloadYapiCDLL()\ndir = dirname(YAPI._yApiCLibFile)\nkeep = [basename(f) for f in [YAPI._yApiCLibFile]] # might include YAPI._yApiCLibFileFallback\n[remove(join(dir, f)) for f in listdir(dir) if f not in keep]\nEOF\n",
   "find $FLATPAK_DEST/share/locale -name \\*.bdic | xargs rm -f",
   "rm -Rf $FLATPAK_DEST/qtwebengine_dictionaries",
   "rm -f $FLATPAK_DEST/resources/qtwebengine_devtools_resources.pak",
   "rm -Rf $FLATPAK_DEST/libexec/webenginedriver",
   "/app/cleanup-BaseApp.sh"
  ],
  "command": "artisan",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=all",
   "--share=network",
   "--talk-name=org.freedesktop.secrets",
   "--filesystem=xdg-documents",
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess"
  ],
  "modules": [
   {
    "name": "phidgets",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22/libphidget22-1.25.20260512.tar.gz",
      "sha256": "c2b2cf3f7da03a35ec7b074b5027bb95452a7e26f77a0ace38d7b2f667147d5f",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22/",
       "pattern": "<a href=\"(libphidget22-([0-9.]+)\\.tar\\.gz)\">"
      }
     }
    ]
   },
   {
    "name": "qhull",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_STATIC_LIBS=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz",
      "sha256": "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e"
     }
    ],
    "cleanup": [
     "/bin",
     "/share/man",
     "/share/doc"
    ]
   },
   {
    "name": "raqm",
    "buildsystem": "meson",
    "config-opts": [
     "--libdir=lib",
     "--buildtype=release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/HOST-Oman/libraqm/releases/download/v0.10.5/raqm-0.10.5.tar.xz",
      "sha256": "563053e724892a7b037913110ea2daef50ad575d4fa9f7c368ae1e4515f5e856",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/HOST-Oman/libraqm/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.content_type = \"application/x-xz\") | .browser_download_url"
      }
     }
    ]
   },
   "./dep-python3-wheels-run.json",
   "./dep-python3-wheels-build.json",
   "./dep-python3-source.json",
   {
    "name": "artisan",
    "buildsystem": "simple",
    "build-commands": [
     "sed -i 's/^\\s*\\(pyinstaller\\|rm -rf dist\\)/#\\1/' src/build-linux.sh",
     "mkdir -p src/dist/artisan && touch src/dist/artisan/__dummy__",
     "cd src && PATH=/var/data/python/bin:$PATH ./build-linux.sh",
     "rm -f src/dist/artisan/__dummy__",
     "mkdir $FLATPAK_DEST/includes",
     "cp -Rp src/dist/* $FLATPAK_DEST/includes",
     "mv $FLATPAK_DEST/includes/translations/* $FLATPAK_DEST/translations",
     "rmdir $FLATPAK_DEST/includes/translations",
     "cp -Rp src/{artisan.py,artisanlib,plus,proto,help,uic,misc} $FLATPAK_DEST",
     "chmod a+x $FLATPAK_DEST/artisan.py",
     "python3 -m compileall $FLATPAK_DEST/{artisanlib,plus,proto,help,uic,misc}",
     "ln -s /app/artisan.py /app/bin/artisan",
     "mkdir -p $FLATPAK_DEST/share/{metainfo,applications,icons/hicolor/scalable/apps}",
     "install -Dm644 src/artisan.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "install -Dm644 src/debian/usr/share/metainfo/$FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/metainfo/",
     "install -Dm644 src/debian/usr/share/applications/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/",
     "desktop-file-edit --set-icon=$FLATPAK_ID $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "artisan.tar.gz",
      "url": "https://github.com/artisan-roaster-scope/artisan/archive/a2ed9da9ae0559aaa298079076de89fece828cb1.tar.gz",
      "sha256": "54a56361fcf287ae7fad79d6ddbca7184f04a3e8626e2368589f1e0f02f29a5c",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/artisan-roaster-scope/artisan/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".tarball_url"
      }
     },
     {
      "type": "patch",
      "path": "artisan-translations-path.diff"
     }
    ]
   }
  ]
 }
}