aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-unicorn-hat/APKBUILD
blob: 0c6fdad269026616bfa007880eb5fc6477e9d62a (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=py-unicorni-hat
_pkgname=unicorn-hat-unicornhat
pkgver=2.1.0
pkgrel=0
pkgdesc="Python wrapper for driving ws2812 pixels from the Raspberry Pi"
url="http://shop.pimoroni.com/products/unicorn-hat"
arch="armhf"
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="e1731748d03372294edf5dedac670061  py-unicorni-hat-2.1.0.tar.gz"
sha256sums="d9337d62b47cb0033cc95f4b90a2d5292429f756b30f34a29615db4dab6773b9  py-unicorni-hat-2.1.0.tar.gz"
sha512sums="16a21f42a13222fa0742b2d60bcef85621519108e773840d8a73c17f3b38f38c18bd2b7038acd0b7338c69726b1a3f4da6524e37f5e7d46ce1450cd68af8e639  py-unicorni-hat-2.1.0.tar.gz"