diff options
Diffstat (limited to 'testing/py-sensehat')
-rw-r--r-- | testing/py-sensehat/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/py-sensehat/APKBUILD b/testing/py-sensehat/APKBUILD new file mode 100644 index 0000000000..bfad9a50a7 --- /dev/null +++ b/testing/py-sensehat/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to> +# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> +pkgname=py-sensehat +_pkgname=python-sense-hat +pkgver=2.1.0 +pkgrel=0 +pkgdesc="Python module to control the Raspberry Pi Sense HAT" +url="https://www.raspberrypi.org/products/sense-hat/" +arch="armhf" +license="BSD-3" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="$_pkgname-$pkgver.tar.gz::https://github.com/RPi-Distro/${_pkgname}/archive/v${pkgver}.tar.gz" + +_builddir=${srcdir}/${_pkgname}-${pkgver} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="eec4a6d9d718232f69475f17cd3864c2 python-sense-hat-2.1.0.tar.gz" +sha256sums="fdc26c296955b7b7cca9279e4cbe309b835afbd4912e0b46cbeac20051ff84e5 python-sense-hat-2.1.0.tar.gz" +sha512sums="f1d6e1d152ec226702f63cd2ce72e76994bb2106eda5a0d22ea04bdc3021640a45f82c2f927fc24bda6de572bd328f72d3632dd73e05ddd1ccfbc1ee39d3f61b python-sense-hat-2.1.0.tar.gz" |