Files

29 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

# SPDX-License-Identifier: GPL-2.0
2018-07-16 20:45:36 +02:00
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
2017-03-02 01:08:35 +00:00
PKG_NAME="pycryptodome"
PKG_VERSION="3.23.0"
PKG_SHA256="5a905f0f4237b79aefee47f3e04568db2ecb70c55dd7cb118974c5260aa9e285"
2017-03-02 01:08:35 +00:00
PKG_LICENSE="BSD"
2018-05-28 02:33:56 +01:00
PKG_SITE="https://pypi.org/project/pycryptodome"
PKG_URL="https://github.com/Legrandin/${PKG_NAME}/archive/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain Python3 setuptools:host"
2017-03-02 01:08:35 +00:00
PKG_LONGDESC="PyCryptodome is a self-contained Python package of low-level cryptographic primitives."
PKG_TOOLCHAIN="python"
2017-03-02 01:08:35 +00:00
pre_configure_target() {
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}
2017-03-02 01:08:35 +00:00
}
post_makeinstall_target() {
2017-03-02 01:08:35 +00:00
# Remove SelfTest bloat
find ${INSTALL} -type d -name SelfTest -exec rm -fr "{}" \; 2>/dev/null || true
find ${INSTALL} -name SOURCES.txt -exec sed -i "/\/SelfTest\//d;" "{}" \;
# Create Cryptodome as an alternative namespace to Crypto (Kodi addons may use either)
ln -sf /usr/lib/${PKG_PYTHON_VERSION}/site-packages/Crypto ${INSTALL}/usr/lib/${PKG_PYTHON_VERSION}/site-packages/Cryptodome
2017-03-02 01:08:35 +00:00
2019-10-24 22:51:28 +01:00
python_remove_source
2017-03-02 01:08:35 +00:00
}