blob: 8d41f5edfb18a4e9163658b6080134bb62c57b9b (
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
|
# Maintainer: tytan652 <tytan652@tytanium.xyz>
pkgname=libfreenect
pkgver=0.7.5
pkgrel=1
pkgdesc="Drivers and libraries for the Xbox Kinect device on Linux"
arch=('x86_64')
url="https://github.com/OpenKinect/libfreenect"
license=(GPL-2.0-or-later)
depends=(
'glibc' 'gcc-libs' 'bash' 'libusb' 'libgl' 'glu'
'freeglut' 'python'
)
makedepends=('cmake' 'libxmu' 'cython' 'python-numpy' 'python-setuptools')
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=('3c668053db726206a8c3a92e92e91ef7a64407968f422b9c4b828d0fd234c866')
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"
}
|