blob: 3b9705b95e7aa29e777ceb9d8a5359e274bcbd0f (
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
|
# Maintainer: Michael Lass <bevan@bi-co.net>
# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR
pkgname=meshtastic-python
_name=python
_verbump=2f9307fd99dee756880503f2eeae5519cacfeba4
pkgver=2.3.7
pkgrel=1
pkgdesc="Python CLI and API for talking to Meshtastic devices"
arch=('any')
url="https://github.com/meshtastic/python/"
# https://github.com/meshtastic/python/issues/422
license=(GPL-3.0-only Apache-2.0)
makedepends=(python-build python-installer python-wheel)
depends=(python-bleak python-dotmap python-protobuf python-pexpect python-pypubsub python-pyqrcode python-pyserial python-pyyaml python-requests python-setuptools python-tabulate python-timeago)
optdepends=('python-pytap2: TUN tunnel support')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/meshtastic/python/archive/refs/tags/${pkgver}.tar.gz"
"https://github.com/meshtastic/python/commit/${_verbump}.patch"
)
sha256sums=('453c3efbc3f8553d35e39a7308df6899a974cd3f55a4e1c05ba9805ef8ba48e9'
'3fc18f7ce88877181dfb165211611eba596dc688f97ff1f7157ae03180e33ee9')
prepare() {
cd "$_name-$pkgver"
# The tagged commits unfortuantely miss the version bump performed in the
# release script, so we manually backport that change.
patch -p1 < "${srcdir}"/${_verbump}.patch
}
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|