blob: 512e0eb4381b6afc36287d75ddc0d60bca3ffd68 (
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
25
26
27
28
29
|
# Maintainer: Ordoe ordoe <aur@cach.co>
pkgname=python-rtimulib
_gitname=RTIMULib
pkgver=7.2.1
pkgrel=3
pkgdesc="Python Binding for RTIMULib, a versatile IMU library."
arch=('armv7h' 'armv6h')
url="http://www.richards-tech.com/"
license=('BSD')
depends=('python' 'python-setuptools')
makedepends=('gcc')
provides=('python-rtimulib')
source=("https://github.com/RPi-Distro/${_gitname}/archive/V${pkgver}.tar.gz")
sha256sums=('d8cc6c8c07633f4cd64f42fef80527033d3c8ed2a457fd6d003850450adb5b03')
build() {
cd "${srcdir}/${_gitname}-${pkgver}/Linux/python/"
python setup.py build
}
package() {
cd "${srcdir}/${_gitname}-${pkgver}/Linux/python/"
python setup.py install --root="${pkgdir}" --optimize=1
# Install license
install -Dm644 "${srcdir}/${_gitname}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|