apktool: make sdk optional, cleanup

This commit is contained in:
blshkv 2020-05-09 11:27:05 +08:00
parent 4cedca9fac
commit 79248b9268
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
4 changed files with 4 additions and 68 deletions

View file

@ -1,3 +1 @@
DIST apktool-2.3.4.jar 11003267 BLAKE2B 4ee9d5b4d69ecb74eb54db991366ee4b31985bcfe599dbee9a5a27cd644fa4188c831968581e2a9f40e8c0004349f3c7f41d97855f85bfd1ac57aa57f4cd143d SHA512 6503fe3e80f83b09e07e97d7888a7fa686e46b0e7a8501de13e134047cd0533bb3ce80f776e63ee4056eae77dad991481bc68dd423fae69766bad11157e253f3
DIST apktool-2.4.0.jar 16314178 BLAKE2B 8e7b68e9576ead8a8448c823d081db369c4ecf1ce3972c9cdc97ab0db4197d39ff003e275e9c13a934eff509306c477448711cded939e99b01f8393463a3b795 SHA512 59f2e76abf5491cae0168e458ab93a1285dbc160498134bf9d9b7c6a648b3e066b013c0fe6acd968c31fed2ed19e57b3400c35e662cdfa46ec0dce6441f6927c
DIST apktool-2.4.1.jar 17661172 BLAKE2B 32ed449b09a1e6ea57fd861687e45d75eb4933d28a1f9ee528b57794a33df3b6c1c107ae19f3e2434287637017dccd284d9ec2e7ff6ccd1aef6b65c5a21cd167 SHA512 042f2cf08393ce556890d87401489bb89684ca8bea1b8708f7fcde075b45bd0a3c038874deaa75627428aef886619ce86eb330a412e5193adb5bd2050784c182

View file

@ -1,31 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A tool for reengineering 3rd party, closed, binary Android apps."
HOMEPAGE="http://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=""
DEPEND=""
RDEPEND="|| ( virtual/jre virtual/jdk )
dev-util/android-sdk-update-manager"
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
}

View file

@ -1,31 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A tool for reengineering 3rd party, closed, binary Android apps."
HOMEPAGE="http://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=""
DEPEND=""
RDEPEND="|| ( virtual/jre virtual/jdk )
dev-util/android-sdk-update-manager"
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
}

View file

@ -1,7 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
DESCRIPTION="A tool for reengineering 3rd party, closed, binary Android apps."
HOMEPAGE="http://ibotpeaches.github.io/Apktool/"
@ -11,11 +11,11 @@ SRC_URI="https://bitbucket.org/iBotPeaches/apktool/downloads/${PN}_${PV}.jar ->
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="sdk"
DEPEND=""
RDEPEND="|| ( virtual/jre virtual/jdk )
dev-util/android-sdk-update-manager"
sdk? ( dev-util/android-sdk-update-manager )"
S="${WORKDIR}"