aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-sensehat/APKBUILD
blob: 5d692b233c8b931d2d1e240371b681c8b4136e4c (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=py3-sensehat
_pkgname=python-sense-hat
pkgver=2.2.0
pkgrel=3
pkgdesc="Python3 module to control the Raspberry Pi Sense HAT"
url="https://www.raspberrypi.org/products/sense-hat/"
arch="armhf armv7"
license="BSD-3-Clause"
depends="python3"
options="!check" # Package doesn't provide tests
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/RPi-Distro/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-sensehat" # Backwards compatibility
provides="py-sensehat=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="71914f6f22206cff23992a6908698978741a46bf9b98648388bac4550f39e8de73db6bd389b79585eba6e82160649a8c8da4217d515bbdbcb50d47218415f3ac  python-sense-hat-2.2.0.tar.gz"