pentoo-overlay/dev-util/jd-cli-bin/jd-cli-bin-1.2.1.ebuild
2025-01-06 10:56:50 +08:00

30 lines
671 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Command line Java Decompiler"
HOMEPAGE="https://github.com/kwart/jd-cli"
SRC_URI="https://repo1.maven.org/maven2/com/github/kwart/jd/jd-cli/${PV}/jd-cli-${PV}.jar"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="!dev-util/jd-cli"
RDEPEND="|| ( virtual/jre virtual/jdk )"
S="${WORKDIR}"
src_unpack() {
dodir "${S}"
cp -L "${DISTDIR}/${A}" "${S}/jd-cli.jar" || die
}
src_install() {
insinto "/opt/jd-cli/"
doins jd-cli.jar
cp "${FILESDIR}"/jd-cli "${ED}"/opt/jd-cli/
dosym "${EPREFIX}"/opt/jd-cli/jd-cli /usr/bin/jd-cli
}