diff options
author | haarp <main.haarp@gmail.com> | 2022-12-29 19:47:28 +0100 |
---|---|---|
committer | haarp <main.haarp@gmail.com> | 2022-12-29 19:47:28 +0100 |
commit | e2f040888733cb5335ca3f822ad97af3fa108fda (patch) | |
tree | 5d7f81eb189fba0cffc06396c62a588a2f6dee53 /dev-util | |
parent | Remove doom3-gpl. Depends on python2 and manifest was broken anyway. (diff) | |
download | haarp-e2f040888733cb5335ca3f822ad97af3fa108fda.tar.gz haarp-e2f040888733cb5335ca3f822ad97af3fa108fda.tar.bz2 haarp-e2f040888733cb5335ca3f822ad97af3fa108fda.zip |
Add apktool, ripped from pentoo =)
Signed-off-by: haarp <main.haarp@gmail.com>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/apktool/Manifest | 3 | ||||
-rw-r--r-- | dev-util/apktool/apktool-2.7.0.ebuild | 31 | ||||
-rw-r--r-- | dev-util/apktool/files/apktool | 7 |
3 files changed, 41 insertions, 0 deletions
diff --git a/dev-util/apktool/Manifest b/dev-util/apktool/Manifest new file mode 100644 index 0000000..374f1a7 --- /dev/null +++ b/dev-util/apktool/Manifest @@ -0,0 +1,3 @@ +AUX apktool 126 BLAKE2B afe158755baf664e92b65346077693ac61d0b5e3aae7678a09fd37a00d9419a07345744e055cd550ce96ff597f923083dd79e2c56e0d993fe40c43515b6a7524 SHA512 d7250800c505276aab9854c7e05c46efc8b857e31fbf394d17938b6777d6904c6c9722183433ef5fc9be274e42f5f09e06144ca75094793125e9578da39c137a +DIST apktool-2.7.0.jar 23171720 BLAKE2B 9ae90ecd9482464a342d94152d5de05f8d90b0edfb07c6e7181f578f5f8661f180a3676045f720b006be735b19b01989e0ed6aeed809d38766aba5dc46aac81d SHA512 6593a7e8ff220f03f4c78cb3c832a6ab7d593936b43dac214a3c607ec9a7db96f115ec5b37a6f0260cf43fc4eccdf7e97f6c5e5c5dbbfac921b42f2844274006 +EBUILD apktool-2.7.0.ebuild 775 BLAKE2B 04408f71bad587ecff2176d5e1be3abf41c226ff55f67f30ded9efe593a6e48ac35b51d3cddc05cd4a6b07e93718c29ee7bd207bf4242c65802036b78ddcfeb2 SHA512 05409418b3f1429da956ad61ce096dcdbd177daf6712448be44eead585128328daa2cdde577fec8f1aceab4c8fc3b49782446f322d4f8f5f9314a3a2b985e3ae diff --git a/dev-util/apktool/apktool-2.7.0.ebuild b/dev-util/apktool/apktool-2.7.0.ebuild new file mode 100644 index 0000000..99a6f29 --- /dev/null +++ b/dev-util/apktool/apktool-2.7.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A tool for reengineering 3rd party, closed, binary Android apps" +HOMEPAGE="https://ibotpeaches.github.io/Apktool/" +SRC_URI="https://bitbucket.org/iBotPeaches/apktool/downloads/${PN}_${PV}.jar -> ${P}.jar" +#SRC_URI="https://github.com/iBotPeaches/Apktool/releases/download/v${PV}/apktool_${PV}.jar" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tools" + +DEPEND="" +RDEPEND="|| ( virtual/jre virtual/jdk ) + tools? ( dev-util/android-sdk-build-tools )" + +S="${WORKDIR}" + +src_unpack() { + dodir "${S}" + cp -L "${DISTDIR}/${A}" "${S}/${PN}.jar" || die +} + +src_install() { + dobin "${FILESDIR}/apktool" + insinto "/opt/${PN}/" + doins apktool.jar +} diff --git a/dev-util/apktool/files/apktool b/dev-util/apktool/files/apktool new file mode 100644 index 0000000..fcea2b8 --- /dev/null +++ b/dev-util/apktool/files/apktool @@ -0,0 +1,7 @@ +#!/bin/sh + +jarpath="/opt/apktool/apktool.jar" + +javaOpts="-Xmx512M -Dfile.encoding=utf-8" + +java $javaOpts -jar "$jarpath" "$@" |