APKBUILD 1.45 KB
Newer Older
Fabian Affolter's avatar
Fabian Affolter committed
1 2 3 4
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-rpio
_pkgname=RPIO
5
pkgver=0.10.1
Fabian Affolter's avatar
Fabian Affolter committed
6 7 8 9 10
pkgrel=0
pkgdesc="GPIO toolbox for the Raspberry Pi"
url="https://github.com/metachris/RPIO"
arch="all"
license="LGPLv3+"
11
depends="python2"
Fabian Affolter's avatar
Fabian Affolter committed
12
depends_dev=""
13
makedepends="python2-dev py-setuptools"
Fabian Affolter's avatar
Fabian Affolter committed
14 15
install=""
subpackages=""
16 17
source="$pkgname-$pkgver.tar.gz::https://github.com/metachris/RPIO/archive/v$pkgver.tar.gz
	missing-typesh.patch"
Fabian Affolter's avatar
Fabian Affolter committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31

_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"
32
	python2 setup.py build || return 1
Fabian Affolter's avatar
Fabian Affolter committed
33 34 35 36
}

package() {
	cd "$_builddir"
37
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
Fabian Affolter's avatar
Fabian Affolter committed
38 39
}

40 41 42 43 44 45
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"