From 470f5aad609b2ae0bdd759819ad2f817df961849 Mon Sep 17 00:00:00 2001 From: blshkv Date: Tue, 12 Dec 2017 10:15:15 +0800 Subject: [PATCH] pentoo-mobile: add more android tools --- dev-util/jadx-bin/Manifest | 1 + dev-util/jadx-bin/jadx-bin-0.6.1.ebuild | 42 +++++++++++++++++++ ...7.0.ebuild => pentoo-mobile-2017.1.ebuild} | 2 + 3 files changed, 45 insertions(+) create mode 100644 dev-util/jadx-bin/Manifest create mode 100644 dev-util/jadx-bin/jadx-bin-0.6.1.ebuild rename pentoo/pentoo-mobile/{pentoo-mobile-2017.0.ebuild => pentoo-mobile-2017.1.ebuild} (95%) diff --git a/dev-util/jadx-bin/Manifest b/dev-util/jadx-bin/Manifest new file mode 100644 index 000000000..0ef755881 --- /dev/null +++ b/dev-util/jadx-bin/Manifest @@ -0,0 +1 @@ +DIST jadx-0.6.1.zip 4110127 SHA256 75a9c01f07f434f42831fc71053e933e3a6e92692731fb0e2347234171a49e49 SHA512 9fbeaed2148b4f0cad0fb995e83a071cbbbf06067dbcb09c632a7b732197499a1b81e2c4c07cdb36aea8ec4ba63d256d27eaed61ecf9b447919e50ee6653488b WHIRLPOOL 7bd5049361add1b5a2c4ddb03062b76f89c808f1981fdfcf3a9816e1a890185570b1a926e3db52f427671023de27eec258ca590b32badb1876c4eab2b2353f33 diff --git a/dev-util/jadx-bin/jadx-bin-0.6.1.ebuild b/dev-util/jadx-bin/jadx-bin-0.6.1.ebuild new file mode 100644 index 000000000..6439caa34 --- /dev/null +++ b/dev-util/jadx-bin/jadx-bin-0.6.1.ebuild @@ -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" +} diff --git a/pentoo/pentoo-mobile/pentoo-mobile-2017.0.ebuild b/pentoo/pentoo-mobile/pentoo-mobile-2017.1.ebuild similarity index 95% rename from pentoo/pentoo-mobile/pentoo-mobile-2017.0.ebuild rename to pentoo/pentoo-mobile/pentoo-mobile-2017.1.ebuild index 9841d3c51..b1ca8f7c0 100644 --- a/pentoo/pentoo-mobile/pentoo-mobile-2017.0.ebuild +++ b/pentoo/pentoo-mobile/pentoo-mobile-2017.1.ebuild @@ -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