Updated to 2.15.0

This commit is contained in:
pingplug 2018-08-11 10:11:25 +08:00
parent 0652e10a1b
commit 92fb54aecd
4 changed files with 48 additions and 34 deletions

View File

@ -1,16 +1,18 @@
pkgbase = librealsense pkgbase = librealsense
pkgdesc = Librealsense is a cross-platform library (Linux, OSX, Windows) for capturing data from the Intel RealSense F200, SR300 and R200 cameras pkgdesc = Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300)
pkgver = 0.9.1 pkgver = v2.15.0
pkgrel = 1 pkgrel = 1
url = https://github.com/IntelRealSense/librealsense url = https://github.com/IntelRealSense/librealsense
arch = any arch = x86_64
license = Apache license = Apache
depends = glfw-x11>=3 makedepends = cmake
makedepends = linux-lts-header
depends = glfw-x11
depends = gtk3
depends = libusb depends = libusb
optdepends = qtcreator depends = linux-lts
source = https://github.com/IntelRealSense/librealsense/archive/v0.9.1.tar.gz source = git+https://github.com/IntelRealSense/librealsense#commit=1e8aa8002bc3d6afbfc7b733ea4a19864bbeca14
md5sums = f2f2bad22f3cffb8f1bb3f509a90f3fb sha256sums = SKIP
pkgname = librealsense pkgname = librealsense
install = librealsense.install

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
*
!.gitignore
!.SRCINFO
!PKGBUILD
!*.install
!*.patch
!*.diff

View File

@ -1,33 +1,45 @@
# Maintainer: Patrick José Pereira <positivcheg94@gmail.com> # Maintainer: pingplug <pingplug@foxmail.com>
# Contributr: Patrick José Pereira <positivcheg94@gmail.com>
_commit=1e8aa8002bc3d6afbfc7b733ea4a19864bbeca14 # tags=v2.15.0
pkgname=librealsense pkgname=librealsense
pkgver=c8754286 pkgver=v2.15.0
pkgrel=1 pkgrel=1
pkgdesc="Librealsense is a cross-platform library (Linux, OSX, Windows) for capturing data from the Intel RealSense F200, SR300 and R200 cameras" pkgdesc="Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300)"
arch=(any) arch=('x86_64')
url="https://github.com/IntelRealSense/librealsense" url="https://github.com/IntelRealSense/librealsense"
license=('Apache') license=('Apache')
makedepends=() makedepends=('cmake' 'linux-lts-headers')
depends=('git' 'glfw-x11>=3' 'libusb' 'linux-headers') depends=('glfw-x11' 'gtk3' 'libusb' 'linux-lts')
optdepends=('qtcreator') source=("git+https://github.com/IntelRealSense/librealsense#commit=${_commit}")
changelog='' sha256sums=(SKIP)
source=("git://github.com/IntelRealSense/librealsense")
md5sums=(SKIP)
udev_rules="etc/udev/rules.d/99-realsense-libusb.rules"
pkgver() { pkgver() {
cd "$pkgname" cd "${srcdir}/${pkgname}"
git log --pretty=format:'%h' -n 1 git describe --tags | sed 's/-/+/g'
} }
build() { build() {
cd "$pkgname" cd "${srcdir}/${pkgname}"
mkdir build && cd build mkdir -p build && cd build
cmake ../ -DBUILD_EXAMPLES=true 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 make
} }
package() { package() {
cd "$pkgname/build" cd "${srcdir}/${pkgname}/build"
sudo make install DESTDIR="${pkgdir}" make install
echo "Maybe kernel patch be necessary !!" cd "${srcdir}/${pkgname}/config"
install -Dm644 99-realsense-libusb.rules "${pkgdir}/etc/udev/rules.d/99-realsense-libusb.rules"
} }

View File

@ -1,7 +0,0 @@
post_install() {
getent group realsense >/dev/null 2>&1 || groupadd realsense
udevadm control --reload-rules
echo "To use this driver you should add user to realsense group !!!"
echo "sudo udevadm control --reload-rules && udevadm trigger"
echo "To updare usb rules."
}