2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
# Based on libreelec pycryptodome package
|
|
|
|
|
|
|
|
PKG_NAME="tcpbridge"
|
|
|
|
PKG_VERSION="1.1.1"
|
|
|
|
PKG_SHA256="d970c3635a2f0115cccbc0b7c0f27f8b8cd6981ef8cbd5b95fc7b224a6313133"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://pypi.org/project/tcpbridge"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="https://files.pythonhosted.org/packages/source/${PKG_NAME:0:1}/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2022-02-27 23:34:12 +00:00
|
|
|
PKG_DEPENDS_TARGET="Python3 dbus-python setuptools"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="TCP bridge for data transfer."
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
cd ${PKG_BUILD}
|
|
|
|
rm -rf .${TARGET_NAME}
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-24 13:53:43 +00:00
|
|
|
export PYTHONXCPREFIX="${SYSROOT_PREFIX}/usr"
|
|
|
|
export LDSHARED="${CC} -shared"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
python3 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
python3 setup.py install --root=${INSTALL} --prefix=/usr
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|