blob: da9a483d30c8e1ec1096ddea2c74942378be2131 (
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
|
# Maintainer: Razer <razer[AT]neuf[DOT]fr>
pkgname=python-adafruit-circuitpython-dht
_pypi_pkgname=adafruit_circuitpython_dht
pkgver=4.0.6
pkgrel=1
pkgdesc="CircuitPython support for DHT11 and DHT22 type temperature/humidity devices"
arch=('armv6h' 'armv7h')
url="https://github.com/adafruit/Adafruit_CircuitPython_DHT"
license=('MIT')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools-scm'
)
depends=(
'python-adafruit-circuitpython-busdevice'
)
optdepends=()
source=("https://pypi.io/packages/source/a/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz")
sha256sums=('d4b3a560a5595ce58a0349127d2f098840e5d3b875a14555dbd45d7d2e059f30')
build() {
cd "${srcdir}/${_pypi_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm644 -t "$pkgdir/usr/share/license/$pkgname" LICENSE
}
|