jadx-bin-1.4.3.ebuild

This commit is contained in:
Anton Bolshakov 2022-07-21 09:43:41 +08:00
parent 6ab424349a
commit 304390ae9c
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 44 additions and 1 deletions

View file

@ -1,2 +1,2 @@
DIST jadx-1.4.1.zip 27125277 BLAKE2B 82539d928b3b8528a0fce29b6a9e78dc5eb90bb451ba955872982e249c16773c0e38aa64768a586468495efcace5e95ed60dd590425ae9dac5bb6d551d7b83dd SHA512 c32ec5c5fcae48d945b02804a010b55cfcdee9a25e9269a85194247c962b5643c76363fec36a8d7561dd6156a24206662d2dccc6db7011d1be1c562027d9cf2f
DIST jadx-1.4.2.zip 27266924 BLAKE2B b6d4fae96358cb6bdf6c4540275fab90934c6c3118de23cb3f4721c609d88bfe885f664ef92e8ba7de0622aeaed84849d379c4174f47f95a80b764a7a51ff3ec SHA512 bdb04865dd3a1d8e8f26f4c1656eb14ad634cb7d244d7a501a487483381f0da1afcff1d5a765e369cd0727782123a7bb88aae750f916d82231bfa25454cfe468
DIST jadx-1.4.3.zip 27390308 BLAKE2B 9531345677eaa8bdcf562994ff24517b54c94740d922680bd40f7aa6c96398d51b328155043cb1d7951bf5513980efc2a5ea13d9d11ceeddcc3d91eb4757757e SHA512 65dfdcc59773e8fb0876ab8634fe3392b07b6871aebb4c6c672668fd7a429d78976676cb3261eb3d61375dc279d26a8795772c88e568b34d2b79efc8f4ad6da1

View file

@ -0,0 +1,43 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="jadx"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A standalone graphical utility that displays Java source codes of .class file"
HOMEPAGE="https://github.com/skylot/jadx"
SRC_URI="https://github.com/skylot/jadx/releases/download/v${PV}/${MY_P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/jre"
S="${WORKDIR}"
src_prepare() {
sed -e 's|APP_HOME="`pwd -P`"|APP_HOME="/opt/jadx-bin/"|' -i bin/${MY_PN} || die "sed failed"
sed -e 's|APP_HOME="`pwd -P`"|APP_HOME="/opt/jadx-bin/"|' -i bin/${MY_PN}-gui || die "sed failed"
eapply_user
}
src_install() {
dodir /opt/"${PN}"
insinto /opt/"${PN}"
doins -r *
fperms -R 755 "${INSTALL_DIR}/opt/${PN}/bin/${MY_PN}"
fperms -R 755 "${INSTALL_DIR}/opt/${PN}/bin/${MY_PN}-gui"
dosym "${EPREFIX}"/opt/${PN}/bin/${MY_PN} /usr/bin/${MY_PN}
dosym "${EPREFIX}"/opt/${PN}/bin/${MY_PN}-gui /usr/bin/${MY_PN}-gui
# 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}"
}