# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/ghidra/ghidra.conf # Copyright (C) 2021 - 2022 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 --- build() { export GRADLE_HOME=/usr/java/gradle echo "Building Ghidra" gradle -I gradle/support/fetchDependencies.gradle init gradle buildGhidra } install() { mkdir -p build/out cd build/out unzip ../dist/*.zip # TODO: should honor $prefix mkdir -p /opt/ghidra cp -r gh*/* /opt/ghidra ln -s /opt/ghidra/ghidraRun /usr/bin/ghidra chmod +x /usr/bin/ghidra } runconf=0 runmake= hook_add inmake 2 build hook_add postmake 2 install