blob: 1fb99e78f231c9469022e82ed9f187d43e8922aa (
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
|
# Maintainer: Razer <razer[AT]neuf[DOT]fr>
pkgname=python-adafruit-blinka
_pypi_pkgname=Adafruit-Blinka
pkgver=8.30.0
pkgrel=1
pkgdesc="CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython"
arch=('armv6h' 'armv7h' 'aarch64')
url="https://github.com/adafruit/Adafruit_Blinka"
license=('MIT')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools-scm'
)
depends=(
'python'
'python-sysv_ipc'
'python-adafruit-platformdetect'
'python-gpiod'
'python-adafruit-pureio'
)
optdepends=()
source=("https://pypi.io/packages/source/A/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz")
sha256sums=('db968c4efa84aac6bec9f4788ae214bfed97748dfd5c3985b72cf80b0162a4fe')
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
}
|