pentoo-overlay/dev-util/jd-gui-bin/jd-gui-bin-1.4.2.ebuild
2019-04-11 14:11:34 +08:00

35 lines
751 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_PN="jd-gui"
MY_P="jd-gui-${PV}"
inherit eutils multilib rpm
DESCRIPTION="A standalone graphical utility that displays Java source codes of .class file"
HOMEPAGE="http://jd.benow.ca/"
SRC_URI="https://github.com/java-decompiler/jd-gui/releases/download/v${PV}/${MY_P}.rpm"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/jre"
S="${WORKDIR}/opt/jd-gui"
src_install() {
dodir /opt/"${MY_PN}"
insinto /opt/"${MY_PN}"
doins "${MY_P}.jar"
doicon jd_icon_128.png
domenu jd-gui.desktop
echo -e "#!/bin/sh\njava -jar /opt/${MY_PN}/${MY_P}.jar >/dev/null 2>&1 &\n" > "${MY_PN}"
dobin "${MY_PN}"
}