pentoo-mobile: add more android tools

This commit is contained in:
blshkv 2017-12-12 10:15:15 +08:00
parent 8dcf94ada4
commit 470f5aad60
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST jadx-0.6.1.zip 4110127 SHA256 75a9c01f07f434f42831fc71053e933e3a6e92692731fb0e2347234171a49e49 SHA512 9fbeaed2148b4f0cad0fb995e83a071cbbbf06067dbcb09c632a7b732197499a1b81e2c4c07cdb36aea8ec4ba63d256d27eaed61ecf9b447919e50ee6653488b WHIRLPOOL 7bd5049361add1b5a2c4ddb03062b76f89c808f1981fdfcf3a9816e1a890185570b1a926e3db52f427671023de27eec258ca590b32badb1876c4eab2b2353f33

View file

@ -0,0 +1,42 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_PN="jadx"
MY_P="${MY_PN}-${PV}"
#inherit eutils multilib
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/v0.6.1/${MY_P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="x86 amd64"
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 lib/
# 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 "bin/${MY_PN}"
dobin "bin/${MY_PN}-gui"
}

View file

@ -24,9 +24,11 @@ RDEPEND="${DEPEND}
dev-python/frida-python
android? ( !arm? ( dev-util/apktool
dev-util/jd-gui-bin
dev-util/jadx-bin
dev-util/dex2jar
dev-util/android-tools
dev-util/android-sdk-update-manager
app-misc/gplaycli
)
)
ios? ( sys-devel/clang