aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-unicorn-hat/APKBUILD
blob: db02c47a13e5cf9823faef29a991402584433db7 (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
38
39
40
41
42
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=py-unicorn-hat
_pkgname=unicorn-hat-unicornhat
pkgver=2.1.2
pkgrel=0
pkgdesc="Python wrapper for driving ws2812 pixels from the Raspberry Pi"
url="http://shop.pimoroni.com/products/unicorn-hat"
arch="armhf aarch64"
license="GPL2"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pimoroni/unicorn-hat/archive/unicornhat-${pkgver}.tar.gz"

builddir=${srcdir}/${_pkgname}-${pkgver}

prepare() {
	local i
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$builddir/python/UnicornHat"
        python setup.py build || return 1
}

package() {
	cd "$builddir/python/UnicornHat"
         python setup.py install --prefix=/usr --root="$pkgdir" || return 1
         install -D -m0644 $builddir/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
md5sums="63a61940a4ee469d0235454629ea60d3  py-unicorn-hat-2.1.2.tar.gz"
sha256sums="b19430964934412b6b76dfa7b6ed7924610bda0d10e2cba47a2c580baa10da8c  py-unicorn-hat-2.1.2.tar.gz"
sha512sums="dee24ec570b8624792899fbf98fafea6565b939581ecce0adcf78c389cc0f2ec274466be31bf3e09c861a30a074f491f1366b0ac4a55529c259bfb3869d96bef  py-unicorn-hat-2.1.2.tar.gz"