           SPELL=iaito-r2ghidra
         VERSION=6.2.0
    IAITO_VERSION=6.1.8
          SOURCE=iaito-$IAITO_VERSION.tar.gz
   SOURCE_URL[0]=https://github.com/radareorg/iaito/archive/$IAITO_VERSION.tar.gz
     SOURCE_HASH=sha512:9ab8619e923f8bb67219e8cbd912dcd940f1dd917db277e4fae1ffbbb5b24711de728c6ef3d8c2c96e489c6ee533593012b24aef0166b2cc47782c6fb4117821
SOURCE_DIRECTORY="$BUILD_DIRECTORY/iaito-$IAITO_VERSION"
         SOURCE2=r2ghidra-$VERSION.tar.gz
  SOURCE2_URL[0]=https://github.com/radareorg/r2ghidra/archive/refs/tags/$VERSION.tar.gz
    SOURCE2_HASH=sha512:3cc444bc172c3181a0061616c776fe99b1ab9537c10da2145b0e908b351622a85889f660e9020653a440a14c59c21b0b1222ef4d26c13989e4eb33a363281c35
        DOC_DIRS="doc"
        WEB_SITE=https://github.com/radareorg/r2ghidra
         ENTERED=20260808
      LICENSE[0]=LGPL-3.0-only
        KEYWORDS="radare2 reverse-engineering decompiler"
           SHORT="Ghidra decompiler plugin for iaito"
cat << EOF
Native GUI integration of r2ghidra's Ghidra decompiler engine for iaito.

Only the iaito-plugin/ subtree is pulled out of r2ghidra's tarball (already
cached locally by the r2ghidra spell, same filename and hash), patched to
match iaito's current Decompiler API, and built as an extra plugin
subdirectory of iaito's own source, since iaito's plugin API headers aren't
installed system-wide. The resulting Qt plugin links against the
core_r2ghidra library provided by the r2ghidra spell.

Without this spell, iaito can still invoke r2ghidra through radare2's own
"pdg" command, just without the native decompiler-tab integration.
EOF
