diff --git a/srcpkgs/Ghidrathon/patches/dont-use-pip.patch b/srcpkgs/Ghidrathon/patches/dont-use-pip.patch new file mode 100644 index 00000000000..88fe8faa9d3 --- /dev/null +++ b/srcpkgs/Ghidrathon/patches/dont-use-pip.patch @@ -0,0 +1,10 @@ +--- a/build.gradle ++++ b/build.gradle +@@ -42,7 +42,6 @@ + // we need to copy the Jep native binaries built in installJep to our extension directory; we use a small + // utility script written in Python + task copyJepNativeBinaries(type: Exec) { +- dependsOn installJep + workingDir "${projectDir}" + commandLine pythonBin, "util${File.separator}configure_jep_native_binaries.py" + } diff --git a/srcpkgs/Ghidrathon/template b/srcpkgs/Ghidrathon/template new file mode 100644 index 00000000000..6e445079286 --- /dev/null +++ b/srcpkgs/Ghidrathon/template @@ -0,0 +1,24 @@ +# Template file for 'Ghidrathon' +pkgname=Ghidrathon +version=3.0.1 +revision=1 +hostmakedepends="gradle openjdk17 unzip jep" +makedepends="ghidra python3-devel" +depends="ghidra jep" +short_desc="Ghidra extension for Python3 support" +maintainer="Andrew Benson " +license="Apache-2.0" +homepage="https://github.com/mandiant/Ghidrathon" +changelog="https://github.com/mandiant/Ghidrathon/releases" +distfiles="https://github.com/mandiant/Ghidrathon/archive/v${version}.tar.gz" +checksum=9173f489f4a91569b9b36cf2f78e6b88af2189d742e658829cb492250b238c1f +nocross=yes # ghidra cannot be cross-compiled + +do_build() { + gradle -PGHIDRA_INSTALL_DIR=${XBPS_CROSS_BASE}/usr/libexec/ghidra +} + +do_install() { + vmkdir usr/libexec/ghidra/Ghidra/Extensions + unzip dist/*Ghidrathon*.zip -d ${DESTDIR}/usr/libexec/ghidra/Ghidra/Extensions +}