2013-05-05 01:03:33 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgname=pybbio
|
2014-01-20 22:46:10 +00:00
|
|
|
pkgver=v0.5.85.gfd027df
|
2013-05-05 01:03:33 +00:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
git describe --always | sed 's|-|.|g'
|
|
|
|
}
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A Python library for Arduino-style hardware IO support on the TI BeagleBone"
|
|
|
|
arch=('armv7h')
|
|
|
|
url="https://github.com/alexanderhiam/PyBBIO"
|
|
|
|
license=('Apache')
|
|
|
|
depends=('python2')
|
|
|
|
makedepends=('git')
|
|
|
|
source=("$pkgname::git://github.com/alexanderhiam/PyBBIO.git")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
sed -i 's:env python:env python2:' examples/*.py tests/*.py
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
python2 setup.py install --root=${pkgdir}
|
|
|
|
install -m 0755 -d "${pkgdir}/usr/share/pybbio/examples"
|
|
|
|
cp examples/* "${pkgdir}/usr/share/pybbio/examples"
|
|
|
|
}
|