dev-util/ghidra-bin - 12.0.3 (gogooverlay)

Search

Package Information

Description:
Ghidra is a software reverse engineering (SRE) framework
Homepage:
https://ghidra-sre.org
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
12.0.3 8 ~amd64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

PD="20260210"

DESCRIPTION="Ghidra is a software reverse engineering (SRE) framework"
HOMEPAGE="https://ghidra-sre.org"
SRC_URI="https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${PV}_build/ghidra_${PV}_PUBLIC_${PD}.zip -> ${P}.zip"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

RESTRICT="strip"

DEPEND="virtual/jdk:21"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/unzip"

src_unpack() {
	if [[ -n ${A} ]]; then
		unpack ${A}
	fi

	mv "${WORKDIR}/ghidra_${PV}_PUBLIC" "${WORKDIR}/${P}"
}

src_install() {
	insinto "/opt/"
	doins -r "${S}"

	# Restore executability to all files
	fperms 755 $(find -type f -executable | awk "{print \"/opt/${P}/\" \$0}")
	make_desktop_entry "/opt/${P}/ghidraRun" "Ghidra" "/opt/${P}/support/ghidra.ico"

	dosym -r "/opt/${P}/ghidraRun" "/usr/bin/${PN}"
}

Dependencies

DEPEND

virtual/jdk:21

RDEPEND

virtual/jdk:21

BDEPEND

app-arch/unzip

Manifest for 12.0.3

Type File Size Source URLs
DIST ghidra-bin-12.0.3.zip 509902451 bytes https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.0.3_build/ghidra_12.0.3_PUBLIC_20260210.zip