blob: 5c4c39790f7c1df257adf7804aa64ee5572baa82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-bflb-iot-tool
_name=${pkgname#python-}
pkgver=1.9.0
pkgrel=1
pkgdesc="BOUFFALOLAB IOT TOOL"
arch=('any')
url="https://pypi.org/project/bflb-iot-tool"
license=('MIT')
groups=()
_pydeps=(
ecdsa
six
pycryptodome
pylink-square
pyserial)
depends=(
gcc-libs
glibc
libusb
python
"${_pydeps[@]/#/python-}")
_pymakedeps=(
build
installer
wheel
setuptools)
makedepends=(
"${_pymakedeps[@]/#/python-}")
options=('!strip')
optdepends=("jlink-software-and-documentation: Segger JLink software & documentation pack for Linux")
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('7939bc0092f088078e637630e4e6c5e5cb8fa6e995f920b6f4b85938e0404338')
build() {
cd "${srcdir}/${_name}-${pkgver}"
rm -rf bflb_iot_tool/utils/jlink
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|