summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4da76711ea576a69f8a44475199d6c155bff05e3 (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: alufers <alufers[at]wp[dot]pl>

pkgname=ltchiptool
pkgver=4.11.4
pkgrel=1
pkgdesc='Universal, easy-to-use GUI flashing/dumping tool for BK7231, RTL8710B and RTL8720C.'
url='https://github.com/libretiny-eu/ltchiptool'
arch=('any')
license=('MIT')
depends=(
  python
  python-datastruct
  python-click
  python-colorama
  python-importlib-metadata
  python-prettytable
  bk7231tools
  python-xmodem
  python-semantic-version
  python-hexdump
  python-bitstruct
  python-requests
)
makedepends=(
  python-build
  python-installer
  python-poetry-core
  python-wheel
)
optdepends=(
  python-wxpython
  python-zeroconf
)
source=(https://github.com/libretiny-eu/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('4689bbf91f0033c4c16fbfa19d69de544224639297a002de6f9f14636a0226db')
b2sums=('e43be0f095f5cea436eac1e74ef10afbb1486ce550f8f65f31fd0832c791e19915a23542557a2253af2ff0d6a07fc67c1bc7fc98aa8b3ddad70e25df3be172ab')

build() {
  cd ${pkgname}-${pkgver}
  python -m build --wheel --no-isolation
}

package() {
  cd ${pkgname}-${pkgver}
  python -m installer --destdir="${pkgdir}" dist/*.whl
}