dex2jar-2.1.ebuild

This commit is contained in:
Anton Bolshakov 2021-12-01 08:46:02 +08:00
parent f62d407122
commit 67f381b71c
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 36 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST dex-tools-2.1-SNAPSHOT-20180327402.zip 5587331 BLAKE2B 49978549f9a6117a31814a08cd7a0be415b9d53ad64e815a7f0b06c95b3920a21ef210d31a762c413381344e533bec2d2f95bd634b6697a1ae2206f3bc29a3b6 SHA512 6e34bda6ba2bc94b40f23f565b4802168125f35b90a642b23119aa3f2e6c415365dc7b6d0b6a219253ea10a5c10142351471f6af9945c4e548e00f15a6767086
DIST dex2jar-2.1.zip 5641797 BLAKE2B 364374d37b453b8b7514e4770845ab1a13e95264901bb0e433037ea797fda09b5c5629bfc7ab0daed3c86e0d1cc77796bd850f209bf781f8db5a34eebe6a8305 SHA512 44b4a51043ef608158e16f70d9a448ae0a37896da19bd9837e1124e197b7b41a7c37f074386b0cc03edd4f385066bf5ef04c553f6dec0b0cc2a11ecbf299b16f

View file

@ -0,0 +1,35 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Tools to work with android .dex and java .class files"
HOMEPAGE="https://github.com/pxb1988/dex2jar/"
SRC_URI="https://github.com/pxb1988/dex2jar/releases/download/v${PV}/${P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
RDEPEND="|| ( virtual/jre virtual/jdk )"
S="${WORKDIR}/dex-tools-${PV}"
src_prepare() {
rm *.bat
chmod a+x *.sh
rm *.txt
cd lib
rm *.txt
eapply_user
}
src_install() {
dodir /opt/"${PN}"
cp -R "${S}"/* "${ED}/opt/${PN}" || die "Install failed!"
for i in *.sh; do
dosym "${EPREFIX}/opt/${PN}/${i}" "/usr/bin/${i##*/}"
done
}