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 = "bluetool"
PKG_VERSION = "0.2.3"
PKG_SHA256 = "09aca1174ea9d8b402f2231aa2277726174c30482710fc887ebbda7eb820f614"
PKG_LICENSE = "GPL"
PKG_SITE = "https://pypi.org/project/bluetool"
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-05 14:23:32 +00:00
PKG_DEPENDS_TARGET = "Python3 dbus-python tcpbridge"
PKG_LONGDESC = "A simple Python API for Bluetooth D-Bus calls. Allows easy pairing, connecting and scanning.Also provides a TCP-to-RFCOMM socket bridge for data transfer."
PKG_TOOLCHAIN = "manual"
p r e _ c o n f i g u r e _ t a r g e t ( ) {
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
}
m a k e _ t a r g e t ( ) {
python3 setup.py build
}
m a k e i n s t a l l _ t a r g e t ( ) {
2023-02-24 13:53:43 +00:00
python3 setup.py install --root= ${ INSTALL } --prefix= /usr
2022-02-05 14:23:32 +00:00
}