blob: 55284acc2273921bf32fd63085de1ac53845ae39 (
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
|
# Maintainer: Antonio Bartalesi <antonio.bartalesi@gmail.com>
_name=pymodbus
pkgname=python-${_name}
pkgver=3.5.3
pkgrel=1
pkgdesc="A fully featured modbus protocol stack in python"
arch=('any')
url="https://github.com/pymodbus-dev/${_name}"
license=('BSD')
depends=('python')
optdepends=('python-pygments' 'python-pyserial' 'python-prompt_toolkit' 'python-click' 'python-aiohttp' 'python-typer')
source=("v$pkgver.tar.gz::https://github.com/pymodbus-dev/$_name/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('be327db10ff42f5fdb1325298004de5cbb353263447761b24073ece7bf06bf4d')
build() {
cd "${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}
|