blob: 2edf2a678dcba9bb35a088f20652a7f45cf5a0f4 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: RogueGirl
pkgname=libfreenect-git
pkgver=v0.7.5.r0.g09a1f09
pkgrel=1
pkgdesc="Drivers and libraries for the Xbox Kinect device on Linux"
arch=('i686' 'x86_64')
url="http://openkinect.org"
license=('GPL')
depends=(
'glibc' 'gcc-libs' 'bash' 'libusb' 'libgl' 'glu'
'freeglut' 'python'
)
makedepends=('cmake' 'libxmu' 'cython0' 'python-numpy' 'git' 'python-setuptools')
optdepends=('opencv: support for python demos'
'python-matplotlib: support for python demos')
provides=('libfreenect')
conflicts=('libfreenect')
source=('libfreenect-git::git+https://github.com/OpenKinect/libfreenect.git#branch=master')
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DPROJECT_INCLUDE_INSTALL_DIR=/usr/include \
-DBUILD_REDIST_PACKAGE=OFF \
-DBUILD_OPENNI2_DRIVER=ON \
-DBUILD_PYTHON3=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
-Wno-dev
make
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
install -Dm644 platform/linux/udev/51-kinect.rules "${pkgdir}/etc/udev/rules.d/51-kinect.rules"
}
|