projects/aports·blob master · refs

37 lines · 1.0 KiB

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