blob: f1c8b2bb95bfac42979ae01f0a31f0d5839421d5 (
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
|
# Maintainer: Kuchiriel <matheus.almeida@techie.com>
_commit=1e8aa8002bc3d6afbfc7b733ea4a19864bbeca14 # tags=v1.9.7
pkgname=librealsense-1.9.7
pkgver=v1.9.7
pkgrel=1
pkgdesc="Intel® RealSense™ SDK 2.0 is a cross-platform library for
Intel® RealSense™ depth cameras (D400 series and the SR300)"
arch=('x86_64')
url="https://github.com/IntelRealSense/librealsense"
license=('Apache')
makedepends=('cmake')
depends=('glfw-x11' 'gtk3' 'libusb')
source=("git+https://github.com/IntelRealSense/librealsense#commit=${_commit}")
sha256sums=(SKIP)
build() {
cd "${srcdir}/librealsense"
mkdir -p build && cd build
CFLAGS="${CFLAGS} -Wformat" \
CXXFLAGS="${CXXFLAGS} -Wformat" \
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SBINDIR=bin \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=on \
-DBUILD_WITH_STATIC_CRT=off \
-DBUILD_WITH_OPENMP=on \
-DBUILD_EXAMPLES=true
make
}
package() {
cd "${srcdir}/librealsense/build"
DESTDIR="${pkgdir}" make install
cd "${srcdir}/librealsense/config"
install -Dm644 99-realsense-libusb.rules
"${pkgdir}/etc/udev/rules.d/99-realsense-libusb.rules"
}
|