summaryrefslogtreecommitdiff
path: root/testing/py-rpio/APKBUILD
blob: 9c2901bfdd70bb32f92221b105abdc481d4f3ed1 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-rpio
_pkgname=RPIO
pkgver=0.10.1
pkgrel=0
pkgdesc="GPIO toolbox for the Raspberry Pi"
url="https://github.com/metachris/RPIO"
arch="all"
license="LGPL-3.0-or-later"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/metachris/RPIO/archive/v$pkgver.tar.gz
	missing-typesh.patch"

_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"
	python2 setup.py build || return 1
}

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

md5sums="12655fff70c2d42e366c9a56c7236666  py-rpio-0.10.1.tar.gz
67bdcd4790bb703589cd4780f7700ae2  missing-typesh.patch"
sha256sums="2dc52fa0b98f7fa7a0a54a51f540ffaa2fe760142b53af7aebf2edabd6f6cec3  py-rpio-0.10.1.tar.gz
6038a3990013741dd1ab57060e1f35fca9147a8ffa0d454c899c0305610da656  missing-typesh.patch"
sha512sums="47243abb5fa05a019e5de851035cf4d3e2d00b7ebb58fee86e3d89dc5ab4f4938c387d1824a721887a59706d0b401742c709ae53730f09cd021a224eddcd09c4  py-rpio-0.10.1.tar.gz
e2da1911e2e917898f76f9bfd09e85378bff8745691e5a4890e51f821b59762262593e954afc19b586952e9072098b79caba224ae38add71e7d6b2299a9c8c83  missing-typesh.patch"