# Contributor: ScrumpyJack # Maintainer: ScrumpyJack 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="GPL-2.0" depends="python2" depends_dev="" makedepends="python2-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" python2 setup.py build || return 1 } package() { cd "$builddir/python/UnicornHat" python2 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"