pentoo-overlay/dev-python/apkid/apkid-2.1.0_p20200522.ebuild
2020-05-23 10:25:21 +08:00

34 lines
829 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Android Package Protector Identifier"
HOMEPAGE="https://github.com/rednaga/APKiD/"
HASH_COMMIT="6bb8ba2f380af03f52abbb65a86ab0013f2c7211"
SRC_URI="https://github.com/rednaga/APKiD/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="${PYTHON_DEPS}
dev-python/yara-python[dex,${PYTHON_USEDEP}]
app-forensics/yara:="
DEPEND="${RDEPEND}"
S="${WORKDIR}/APKiD-${HASH_COMMIT}"
src_prepare(){
#relax yara and regenarate rules for the current version
sed "s|yara-python==3.11.0|yara-python>=3.11.0|g" -i setup.py || die
./prep-release.py
default
}