aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-unicorn-hat/APKBUILD
blob: 30934b1aec4fc05ac42941aea714b7b41400a3c8 (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=py3-unicorn-hat
_pkgname=unicorn-hat-unicornhat
pkgver=2.1.2
pkgrel=2
pkgdesc="Python wrapper for driving ws2812 pixels from the Raspberry Pi"
url="http://shop.pimoroni.com/products/unicorn-hat"
arch="armhf armv7 aarch64"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/pimoroni/unicorn-hat/archive/unicornhat-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver/python/UnicornHat"

replaces="py-unicorn-hat" # Backwards compatibility
provides="py-unicorn-hat=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="dee24ec570b8624792899fbf98fafea6565b939581ecce0adcf78c389cc0f2ec274466be31bf3e09c861a30a074f491f1366b0ac4a55529c259bfb3869d96bef  py3-unicorn-hat-2.1.2.tar.gz"