# Maintainer: Razer pkgname=python-adafruit-circuitpython-pcd8544 _pypi_pkgname=adafruit-circuitpython-pcd8544 pkgver=1.2.16 pkgrel=0 pkgdesc="CircuitPython display control library for Nokia PCD8544 monochrome displays" arch=('armv6h' 'armv7h') url="https://github.com/adafruit/Adafruit_CircuitPython_PCD8544" license=('MIT') makedepends=( 'python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm' ) depends=( 'python' 'python-adafruit-circuitpython-busdevice' ) optdepends=('python-rpi-gpio') source=("https://pypi.io/packages/source/a/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz") sha256sums=('89c444ebe58aeadc7385fab09803e5b543f6aca5eb70bd62b55ca92a151539a6') 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 }