Package Details: python-raspberry-gpio 0.6.5-1

Git Clone URL: https://aur.archlinux.org/python-raspberry-gpio.git (read-only)
Package Base: python-raspberry-gpio
Description: Python library for GPIO access on a Raspberry Pi
Upstream URL: http://sourceforge.net/projects/raspberry-gpio-python/
Licenses: MIT
Submitter: mickybart
Maintainer: mdevaev
Last Packager: mdevaev
Votes: 12
Popularity: 0.140183
First Submitted: 2013-05-11 19:27
Last Updated: 2019-02-10 21:31

Latest Comments

« First ‹ Previous 1 2

mickybart commented on 2015-02-18 20:45

Guys, I will orphan both RPi.GPIO packages. grubernd will be the maintainer. Thanks to him.

grubernd commented on 2015-02-18 18:48

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.

ahstro commented on 2015-01-05 17:52

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
}

mickybart commented on 2014-06-17 21:47

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.

drunkenmonkey commented on 2014-06-13 10:47

#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
}

hydranix commented on 2014-06-06 06:12

# 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
}

rpodgorny commented on 2013-08-14 16:05

this is a compiled package. please change arch from 'any' to 'armv6h', thank you...