mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
35 lines
757 B
Bash
35 lines
757 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Tools to work with android .dex and java .class files"
|
|
HOMEPAGE="https://github.com/pxb1988/dex2jar/releases"
|
|
SRC_URI="https://github.com/pxb1988/dex2jar/releases/download/v${PV}/dex-tools-v${PV}.zip -> ${P}.zip"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm64 x86"
|
|
|
|
RDEPEND="|| ( virtual/jre virtual/jdk )"
|
|
BDEPEND="app-arch/unzip"
|
|
|
|
S="${WORKDIR}/dex-tools-v${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 -r "/opt/${PN}/${i}" "/usr/bin/${i##*/}"
|
|
done
|
|
}
|