1 # Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
3 pkgname=libfreenect-git
6 pkgdesc="Drivers and libraries for the Xbox Kinect device on Linux"
8 url="http://openkinect.org"
10 depends=('libusb' 'freeglut' 'libxmu')
11 makedepends=('cmake' 'git')
12 provides=('libfreenect')
13 conflicts=('libfreenect')
17 _gitroot="git://github.com/OpenKinect/libfreenect.git"
23 if [ ! -d "${srcdir}/${_gitname}" ]; then
26 cd ${_gitname} && git pull origin
29 msg "GIT checkout done."
32 cp -rf "${_gitname}" "${_gitname}-build"
33 cd "${_gitname}-build"
35 # Install "libfreenect.hpp" to "/usr/include/libfreenect"
36 sed 's/DESTINATION include/DESTINATION include\/${projectNameLower}/g' -i "wrappers/cpp/CMakeLists.txt"
38 cmake -DCMAKE_INSTALL_PREFIX=/usr -DPROJECT_INCLUDE_INSTALL_DIR=/usr/include -DLIB_SUFFIX="" .
43 cd "${srcdir}/${_gitname}-build"
45 make DESTDIR="${pkgdir}" install
46 install -Dm644 platform/linux/udev/51-kinect.rules "${pkgdir}/etc/udev/rules.d/51-kinect.rules"
49 sed 's/<libfreenect.h>/<libfreenect\/libfreenect.h>/g' -i "${pkgdir}/usr/include/libfreenect/libfreenect.hpp"