mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
added alarm/pybbio
This commit is contained in:
parent
a9313b50dd
commit
59b0e8b082
1 changed files with 34 additions and 0 deletions
34
alarm/pybbio/PKGBUILD
Normal file
34
alarm/pybbio/PKGBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
|
||||
buildarch=4
|
||||
|
||||
pkgname=pybbio
|
||||
pkgver=v0.5.43.g3be217a
|
||||
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"
|
||||
}
|
Loading…
Reference in a new issue