testing/py-unicorn-hat: new aport

Python wrapper for driving ws2812 pixels from the Raspberry Pi
http://shop.pimoroni.com/products/unicorn-hat
This commit is contained in:
ScrumpyJack 2016-04-06 08:12:01 +00:00 committed by Natanael Copa
parent bf8fe206f1
commit c09726e8ef

View File

@ -0,0 +1,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"