aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-gpiozero/APKBUILD
blob: 15a37b5f2c70876f7292371d7ebd1714523f85ac (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=py-gpiozero
_pkgname=python-gpiozero
pkgver=1.1.0
pkgrel=0
pkgdesc="A simple interface to everyday GPIO components used with Raspberry Pi"
url="http://gpiozero.readthedocs.org"
arch="armhf"
license="BSD-3"
depends="python2"
depends_dev=""
makedepends="python2-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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="082fc277ab07fbf68397f75ed50ebb61  python-gpiozero-1.1.0.tar.gz"
sha256sums="f68af12d203c998c6265ffd1f820236480639a044f64d6b81311575da8f62ced  python-gpiozero-1.1.0.tar.gz"
sha512sums="e9519bf59d28da5b7c6771b49c99359ec2a0d6ae49433189d009c9be5af8c0e57b857265b1210a6cafdd88e71b3fa2d33d6b1d5ceae38371579f3478e96419e6  python-gpiozero-1.1.0.tar.gz"