aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-rpigpio
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-07-19 14:50:54 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-07-19 15:00:35 +0200
commit5c4633021cc7ccd2877af2b60abd283a5897b483 (patch)
treed8c5e625ab7fd7dd1163708536200e4204b643f8 /community/py-rpigpio
parente261e6a3454559e6e6e14f9a9a086c9d01a31b2f (diff)
downloadaports-5c4633021cc7ccd2877af2b60abd283a5897b483.tar.bz2
aports-5c4633021cc7ccd2877af2b60abd283a5897b483.tar.xz
community/py-rpigpio: improve abuild
Diffstat (limited to 'community/py-rpigpio')
-rw-r--r--community/py-rpigpio/APKBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/community/py-rpigpio/APKBUILD b/community/py-rpigpio/APKBUILD
index a616c1ff58..89b3aa129f 100644
--- a/community/py-rpigpio/APKBUILD
+++ b/community/py-rpigpio/APKBUILD
@@ -3,30 +3,26 @@
pkgname=py-rpigpio
_pkgname=RPi.GPIO
pkgver=0.6.2
-pkgrel=0
+pkgrel=1
pkgdesc="This package provides a class to control the GPIO on a Raspberry Pi."
url="https://pypi.python.org/pypi/RPi.GPIO"
arch="armhf"
license="MIT"
depends="python"
-depends_dev=""
makedepends="python-dev py-setuptools"
-install=""
-subpackages=""
-source="$_pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
-_builddir=${srcdir}/${_pkgname}-${pkgver}
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
python setup.py build || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
-md5sums="9db86fd5f3bae872de9dbb068ee0b096 RPi.GPIO-0.6.2.tar.gz"
-sha256sums="82acff0ef6bbe3cdf6f4dbdd73d96add5294bb94baf7f51c1d901861af3c2392 RPi.GPIO-0.6.2.tar.gz"
-sha512sums="a6fbea51ffd07d33425f66deb1afcd7c3c7334d9e8a7c7ff793fc41e11a744e31003b9553384f0ac29da6576a071caae269ae6f1a681a9ebc5f7914955d84de1 RPi.GPIO-0.6.2.tar.gz"
+md5sums="9db86fd5f3bae872de9dbb068ee0b096 py-rpigpio-0.6.2.tar.gz"
+sha256sums="82acff0ef6bbe3cdf6f4dbdd73d96add5294bb94baf7f51c1d901861af3c2392 py-rpigpio-0.6.2.tar.gz"
+sha512sums="a6fbea51ffd07d33425f66deb1afcd7c3c7334d9e8a7c7ff793fc41e11a744e31003b9553384f0ac29da6576a071caae269ae6f1a681a9ebc5f7914955d84de1 py-rpigpio-0.6.2.tar.gz"