summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 792b38ed2376161963128819a7b953680518d371 (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
# Maintainer: rern <rernrern@gmail.com>

# get pkgurl:
#   - https://sourceforge.net/p/raspberry-gpio-python/code/ci/default/tree/
#   - Download Snapshot > get download link
pkgurl=https://sourceforge.net/code-snapshots/hg/r/ra/raspberry-gpio-python/code/raspberry-gpio-python-code-08048dd1894a6b09a104557b6eaa6bb68b6baac5.zip

pkgname=python-rpi-gpio
pkgver=0.7.1a4
pkgrel=1
pkgdesc="A Python module to control the GPIO on a Raspberry Pi"
url="http://sourceforge.net/projects/raspberry-gpio-python"
license=(MIT)
arch=(any)
depends=(python)
makedepends=(gcc python-distribute)
source=("$pkgurl")
sha256sums=(SKIP)

package() {
	mv -f "$srcdir/$( basename $pkgurl .zip )" "$srcdir/RPi.GPIO-$pkgver"
	cd "$srcdir/RPi.GPIO-$pkgver"
	env CFLAGS="-fcommon" python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}