apktool: v2.3.3 bump

This commit is contained in:
blshkv 2018-04-27 11:33:38 +08:00
parent a3e34fa8df
commit f7b08c75c3
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 34 additions and 56 deletions

View file

@ -1,2 +1,3 @@
DIST apktool-2.3.1.jar 5947943 BLAKE2B 11ccecdb1765bc27cfc517d12dd1e3a3c5b0c6be83004fb8f1700b4c167740b41062a12267d0b0eb8058e4b870309508215a0a307bee31840387cb26b9d27211 SHA512 eca5aac72d64e9d23c74acd52588d89a786bd244922f8c5a228c64e40d4fc38adf93881339cb3a9ca2c2f44aec7917fa88860de8751fe87053d9224ddf1de9f5
DIST apktool-2.3.2.jar 9302324 BLAKE2B df48bafffa158e8166266f979c7889a3041ce28a334578ff39d8a08622f0fdf8547883bcab46adcab218704ec00e8a5056d08ab03df571bca7838a3c0b678982 SHA512 560f8f857a1e96112c169a3903d4eb66e1bccfe177cb22476d69c6043309c9dd85795930fc42c544f1bfa16cab5b73c51d9955ca0d25a1a78d3c6f6dd90ddc61
DIST apktool-2.3.3.jar 9302116 BLAKE2B 9017cab79bec224c44f0d7acf33b342f2a07f576d478f979c0d5c901a6952013fa9b9c58044535a22363525d3f92ed6ec57dc461e31d04434cc59fff0bb9a082 SHA512 eb519a94a4aecc1358f4a1cc84e03c772d8b59edf8b5e37956a756f0cc2673c5d9d976ad6796543db74cf187763077b4bbcd0519e7f7be845c0e9874d4862353

View file

@ -0,0 +1,30 @@
# 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"
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,60 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/sh
# This script is a wrapper for smali.jar, so you can simply call "smali",
# instead of java -jar smali.jar. It is heavily based on the "dx" script
# from the Android SDK
jarpath="/opt/apktool/apktool.jar"
# Set up prog to be the path of this script, including following symlinks,
# and set up progdir to be the fully-qualified pathname of its directory.
jarfile=apktool.jar
libdir="/opt/apktool"
if [ ! -r "$libdir/$jarfile" ]
then
echo `basename "$prog"`": can't find $jarfile"
exit 1
fi
javaOpts=""
# If you want DX to have more memory when executing, uncomment the following
# line and adjust the value accordingly. Use "java -X" for a list of options
# you can pass here.
#
javaOpts="-Xmx512M -Dfile.encoding=utf-8"
# Alternatively, this will extract any parameter "-Jxxx" from the command line
# and pass them to Java (instead of to dx). This makes it possible for you to
# add a command-line parameter such as "-JXmx256M" in your ant scripts, for
# example.
while expr "x$1" : 'x-J' >/dev/null; do
opt=`expr "$1" : '-J\(.*\)'`
javaOpts="${javaOpts} -${opt}"
shift
done
if [ "$OSTYPE" = "cygwin" ] ; then
jarpath=`cygpath -w "$libdir/$jarfile"`
else
jarpath="$libdir/$jarfile"
fi
# add current location to path for aapt
PATH=$PATH:`pwd`;
export PATH;
exec java $javaOpts -jar "$jarpath" "$@"
java $javaOpts -jar "$jarpath" "$@"