pentoo-overlay/dev-util/apktool/apktool-2.0.1.ebuild
2015-09-24 20:41:35 +08:00

30 lines
692 B
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
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-1.7 >=virtual/jdk-1.7 )
dev-util/android-sdk-update-manager"
S="${WORKDIR}"
src_unpack() {
cp "${DISTDIR}/${A}" "${WORKDIR}/${PN}.jar"
}
src_install() {
exeinto /usr/bin
doexe ${FILESDIR}/apktool
insinto /opt/${PN}/
doins apktool.jar
}