# Maintainer: E-Hern Lee _pkgname=kaiju pkgname=ghidra-extension-kaiju-bin pkgdesc="Binary analysis improvements for Ghidra. Can import C++ symbols from OOAnalyer" pkgver=10.1.5 pkgrel=20221002 arch=('any') url=https://github.com/CERTCC/kaiju license=('BSD') depends=('ghidra=10.1.5') optdepends=( 'z3-java: To use the GhiHorn plugin for CFG analysis' ) makedepends=('unzip') source=("https://github.com/CERTCC/kaiju/releases/download/ghidra-${pkgver}/ghidra_${pkgver}_PUBLIC_${pkgrel%.*}_kaiju.zip") sha512sums=('48200a5f78071b0c7ea7123fad66d26f3e725c25af44f9c2094cd091a1e46138e015a9e23fdf28e3b516e85d7b461a17c260e48eaff28e9216ec47a39a3d2ed6') package() { cd $srcdir install -d $pkgdir/opt/ghidra/Ghidra/Extensions unzip -u ghidra_${pkgver}_PUBLIC_${pkgrel%.*}_${_pkgname}.zip -d $pkgdir/opt/ghidra/Ghidra/Extensions/ install -Dm 644 $_pkgname/LICENSE.txt -t $pkgdir/usr/share/licenses/$pkgname }