# Maintainer: Yang pkgname=librealsense pkgver=0.9 pkgrel=1 pkgdesc="Librealsense is a cross-platform library (Linux, OSX, Windows) for capturing data from the Intel RealSense F200, SR300 and R200 cameras" arch=(any) url="https://github.com/IntelRealSense/librealsense" license=('Apache') makedepends=() depends=('glfw>=3' 'libusb' 'qtcreator') changelog='' source=("https://github.com/IntelRealSense/librealsense/archive/v${pkgver}.tar.gz") md5sums=('8b30a944b51a9ff3fa00f2d1652ae9d9') build() { cd "$pkgname-$pkgver" make } package() { cd $srcdir/$pkgname-$pkgver/ mkdir -p $pkgdir/usr/include/$pkgname mkdir -p $pkgdir/usr/lib/ cp -r lib/* $pkgdir/usr/lib/ cp -r include/$pkgname/* $pkgdir/usr/include/$pkgname getent group realsense || groupadd realsense cp $scrdir/99-realsense-libusb.rules $pkgdir/etc/udev/rules.d/ echo "You need to make a uvcvideo patch ( see more on official git )" echo "Don't forget to add user to realsense group" }