blob: 034ced915b61689764c15b8afae57b2ac51f1bc2 (
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
|
# Contributor: Jonatan R. Fischer <jonafischer at gmail dot com>
pkgname=python-ble-serial
_name=${pkgname#python-}
pkgver=3.0.0
pkgrel=2
pkgdesc="A tool to connect Bluetooth 4.0+ Low Energy to UART modules and normal PCs/laptops/RaspberryPi."
arch=('any')
url="https://github.com/Jakeler/ble-serial"
license=('MIT')
depends=('python' 'python-bleak' 'python-coloredlogs' 'python-hatchling')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${_name}-$pkgver.tar.gz::https://github.com/Jakeler/ble-serial/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('51942deedde01ffc864f128cdf87eec76988ea38f100ecd6100e610140155cdb')
build() {
cd "${_name}-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|