diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..934c87f5458d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Sun Nov 29 12:25:25 UTC 2015 +pkgbase = python-rtimulib-git + pkgdesc = Python Binding for RTIMULib, a versatile IMU library. + pkgver = 121.b949681 + pkgrel = 1 + url = http://www.richards-tech.com/ + arch = armv7h + license = BSD + makedepends = gcc + depends = python + depends = python-setuptools + provides = python-rtimulib + source = git+https://github.com/RPI-Distro/RTIMULib.git + sha256sums = SKIP + +pkgname = python-rtimulib-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d3e4aac26d3a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Ordoe ordoe <aur@cach.co> + +pkgname=python-rtimulib-git +_gitname=RTIMULib +pkgver=121.b949681 +pkgrel=1 +pkgdesc="Python Binding for RTIMULib, a versatile IMU library." +arch=('armv7h') +url="http://www.richards-tech.com/" +license=('BSD') +depends=('python' 'python-setuptools') +makedepends=('gcc') +provides=('python-rtimulib') +source=("git+https://github.com/RPI-Distro/${_gitname}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}" + local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + printf "%s" "${ver//-/.}" +} + +build() { + cd "${srcdir}/${_gitname}/Linux/python/" + python setup.py build +} + +package() { + cd "${srcdir}/${_gitname}/Linux/python/" + python setup.py install --root="${pkgdir}" --optimize=1 + + # Install license + install -Dm644 "${srcdir}/${_gitname}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |