# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/ghidra/ghidra.conf # Copyright (C) 2021 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- [ $prefix_auto = 1 ] && prefix="opt/ghidra" && set_confopt runconf=0 runmake= build() { gradle -I gradle/support/fetchDependencies.gradle gradle buildGhidra } hook_add inmake 2 build install() { mkdir -p build/out cd build/out unzip ../dist/*.zip cp -r gh*/* $root/$prefix ln -svf ../ghidraRun $root$bindir/ghidra chmod +x $root$bindir/ghidra } hook_add postmake 2 install