# Maintainer: tytan652 pkgname=libfreenect pkgver=0.7.0 pkgrel=2 pkgdesc="Drivers and libraries for the Xbox Kinect device on Linux" arch=('x86_64') url="https://github.com/OpenKinect/libfreenect" license=('GPL2') depends=( 'glibc' 'gcc-libs' 'bash' 'libusb' 'libgl' 'glu' 'freeglut' 'python' ) makedepends=('cmake' 'libxmu' 'cython0' 'python-numpy') optdepends=('opencv: support for python demos' 'python-matplotlib: support for python demos') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/OpenKinect/libfreenect/archive/v${pkgver}.tar.gz) sha256sums=('adbfc6e7ce72f77cccb3341807a1e2cc6fe2ee62e1bc4d70a6c9b05fac83fe8f') build() { cmake -B build -S "$pkgname-$pkgver" \ -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 cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 "${pkgname}-${pkgver}/platform/linux/udev/51-kinect.rules" "${pkgdir}/etc/udev/rules.d/51-kinect.rules" }