| 1 | # Contributor: ScrumpyJack <[email protected]> |
| 2 | maintainer="ScrumpyJack <[email protected]>" |
| 3 | pkgname=py3-unicorn-hat |
| 4 | _pkgname=unicorn-hat-unicornhat |
| 5 | pkgver=2.1.2 |
| 6 | pkgrel=7 |
| 7 | pkgdesc="Python wrapper for driving ws2812 pixels from the Raspberry Pi" |
| 8 | url="http://shop.pimoroni.com/products/unicorn-hat" |
| 9 | arch="armhf armv7 aarch64" |
| 10 | license="MIT" |
| 11 | depends="python3" |
| 12 | makedepends=" |
| 13 | py3-gpep517 |
| 14 | py3-setuptools |
| 15 | py3-wheel |
| 16 | " |
| 17 | source="$pkgname-$pkgver.tar.gz::https://github.com/pimoroni/unicorn-hat/archive/unicornhat-$pkgver.tar.gz" |
| 18 | options="!check" # No tests |
| 19 | builddir="$srcdir/$_pkgname-$pkgver/python/UnicornHat" |
| 20 | |
| 21 | replaces="py-unicorn-hat" # Backwards compatibility |
| 22 | provides="py-unicorn-hat=$pkgver-r$pkgrel" # Backwards compatibility |
| 23 | |
| 24 | build() { |
| 25 | gpep517 build-wheel \ |
| 26 | --wheel-dir .dist \ |
| 27 | --output-fd 3 3>&1 >&2 |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | python3 -m installer -d "$pkgdir" \ |
| 32 | .dist/*.whl |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | dee24ec570b8624792899fbf98fafea6565b939581ecce0adcf78c389cc0f2ec274466be31bf3e09c861a30a074f491f1366b0ac4a55529c259bfb3869d96bef py3-unicorn-hat-2.1.2.tar.gz |
| 37 | " |