aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-rpi-gpio/APKBUILD
blob: cb8e332303e0561859b04920de15927d2f4d0c3c (plain) (blame)
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: Justin Saunders <justin@jumaka.co.uk>
# Maintainer: Justin Saunders <justin@jumaka.co.uk>
pkgname=py-rpi-gpio
_pkgname=RPi.GPIO
pkgver=0.6.1
pkgrel=0
pkgdesc="A python module to control Raspberry Pi GPIO channels"
url="https://pypi.python.org/pypi/RPi.GPIO"
arch="armhf"
license="PSF"
pydepends=""
pymakedepends=""
depends="python $pydepends"
makedepends="python-dev $pymakedepends"
source="https://files.pythonhosted.org/packages/source/${_pkgname}/$_pkgname/$_pkgname-$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="254d0443a436eb241367c487274e7197  RPi.GPIO-0.6.1.tar.gz"
sha256sums="54e5fb06d9ea1a1389a497fb5a06dfa950c86303b0f4ba89b68c55999d1df064  RPi.GPIO-0.6.1.tar.gz"
sha512sums="8a66a5c6283b79aa6cc5bbf16507c6c93ba6c53b84b6b67d2f133572ce76cb2c8ba4b0957a4fc131ff920e0b34b09aa913d0c9401dc1bfaf76be8235b4f33687  RPi.GPIO-0.6.1.tar.gz"