Please migrate this package to AUR4
Search Criteria
Package Details: python-raspberry-gpio 0.5.11-1
Package Actions
| Package Base: | python-raspberry-gpio |
|---|---|
| Description: | Python library for GPIO access on a Raspberry Pi |
| Upstream URL: | http://sourceforge.net/projects/raspberry-gpio-python/ |
| Category: | modules |
| Licenses: | |
| Submitter: | micky |
| Maintainer: | grubernd |
| Last Packager: | grubernd |
| Votes: | 4 |
| First Submitted: | 2013-05-11 19:27 |
| Last Updated: | 2015-02-21 20:00 |
Latest Comments
Comment by mdevaev
Comment by micky
Guys, I will orphan both RPi.GPIO packages. grubernd will be the maintainer. Thanks to him.
Comment by grubernd
pkgver=0.5.11
md5sums=('9dc3dab6ce2b7ccb833a866efb392821')
also.. if changing the arch from "any" to "armv6h" please also add the "armv7h" for the Raspberry Pi 2 B.
Comment by Lumen
So here's a PKGBUILD for version 0.5.9, the latest as of writing this.
The diff is basically just changing build() to package() and fixing the md5sum.
pkgname=python-raspberry-gpio
pkgver=0.5.9
pkgrel=1
pkgdesc="Python library for GPIO access on a Raspberry Pi"
arch=('any')
url="https://sourceforge.net/projects/raspberry-gpio-python/"
license=('MIT')
depends=('python')
makedepends=('python-distribute')
source=("https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-$pkgver.tar.gz")
md5sums=('54ea6ef33502d43e3a89713593315e5a')
package() {
cd "$srcdir/RPi.GPIO-$pkgver"
python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
}
Comment by micky
Sorry guys for the delay ! I have not my raspberry available at this time.
I have updated the PKGBUILD.
The arch is still "any". I will change that when I have my rasp to generate the package. This is not an issue because import of RPi.GPIO will just trigger an error :
>>> import RPi.GPIO
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: This module can only be run on a Raspberry Pi!
But I will do this arch change as soon as possible.
Thanks to everybody for the PKGBUILD update on comments.
Comment by drunkenmonkey
#In case anyone wants it, this finds and installs the newest version. No md5sums obviously.
pkgname=python-raspberry-gpio
# Gets latest version from pypi.python.org.
pkgver=$(list=$(wget -O- https://pypi.python.org/packages/source/R/RPi.GPIO/ | egrep -o 'RPi.GPIO-[0-9\.]+.tar.gz' | sort | uniq); echo $list | awk '{ print $(NF) }' | sed 's|RPi.GPIO-\(.*\).tar.gz|\1|')
# Replace with required version if you want. ie. pkgver=0.5.5
pkgrel=1
pkgdesc="Python library for GPIO access on a Raspberry Pi"
arch=('armv6h')
url="http://sourceforge.net/projects/raspberry-gpio-python/"
license=('MIT')
depends=('python')
makedepends=('python-distribute')
source=(http://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-$pkgver.tar.gz)
md5sums=('SKIP')
build() {
# Needed for downloading files. You can remove this bit if you download manually.
cd $srcdir
wget $source
tar -zxvf RPi.GPIO-$pkgver.tar.gz
# Install
cd $srcdir/RPi.GPIO-$pkgver
python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
}
Comment by hydranix
# Fixed for anyone who needs it
pkgname=python-raspberry-gpio
pkgver=0.5.5
pkgrel=1
pkgdesc="Python library for GPIO access on a Raspberry Pi"
arch=('armv6h')
url="http://code.google.com/p/raspberry-gpio-python/"
license=('MIT')
depends=('python')
makedepends=('python-distribute')
source=(http://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-$pkgver.tar.gz)
md5sums=('8cbc1cb0c0f1a4d93bf1efe1a745f1f0')
build() {
cd $srcdir/RPi.GPIO-$pkgver
python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
}
Comment by rpodgorny
this is a compiled package. please change arch from 'any' to 'armv6h', thank you...