generated from archlinux/template
Updated to 2.15.0
This commit is contained in:
parent
0652e10a1b
commit
92fb54aecd
18
.SRCINFO
18
.SRCINFO
@ -1,16 +1,18 @@
|
||||
pkgbase = librealsense
|
||||
pkgdesc = Librealsense is a cross-platform library (Linux, OSX, Windows) for capturing data from the Intel RealSense F200, SR300 and R200 cameras
|
||||
pkgver = 0.9.1
|
||||
pkgdesc = Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300)
|
||||
pkgver = v2.15.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/IntelRealSense/librealsense
|
||||
arch = any
|
||||
arch = x86_64
|
||||
license = Apache
|
||||
depends = glfw-x11>=3
|
||||
makedepends = cmake
|
||||
makedepends = linux-lts-header
|
||||
depends = glfw-x11
|
||||
depends = gtk3
|
||||
depends = libusb
|
||||
optdepends = qtcreator
|
||||
source = https://github.com/IntelRealSense/librealsense/archive/v0.9.1.tar.gz
|
||||
md5sums = f2f2bad22f3cffb8f1bb3f509a90f3fb
|
||||
depends = linux-lts
|
||||
source = git+https://github.com/IntelRealSense/librealsense#commit=1e8aa8002bc3d6afbfc7b733ea4a19864bbeca14
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = librealsense
|
||||
install = librealsense.install
|
||||
|
||||
|
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
*
|
||||
!.gitignore
|
||||
!.SRCINFO
|
||||
!PKGBUILD
|
||||
!*.install
|
||||
!*.patch
|
||||
!*.diff
|
50
PKGBUILD
50
PKGBUILD
@ -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
|
||||
pkgver=c8754286
|
||||
pkgver=v2.15.0
|
||||
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)
|
||||
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=()
|
||||
depends=('git' 'glfw-x11>=3' 'libusb' 'linux-headers')
|
||||
optdepends=('qtcreator')
|
||||
changelog=''
|
||||
source=("git://github.com/IntelRealSense/librealsense")
|
||||
md5sums=(SKIP)
|
||||
udev_rules="etc/udev/rules.d/99-realsense-libusb.rules"
|
||||
makedepends=('cmake' 'linux-lts-headers')
|
||||
depends=('glfw-x11' 'gtk3' 'libusb' 'linux-lts')
|
||||
source=("git+https://github.com/IntelRealSense/librealsense#commit=${_commit}")
|
||||
sha256sums=(SKIP)
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
git log --pretty=format:'%h' -n 1
|
||||
cd "${srcdir}/${pkgname}"
|
||||
git describe --tags | sed 's/-/+/g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
mkdir build && cd build
|
||||
cmake ../ -DBUILD_EXAMPLES=true
|
||||
cd "${srcdir}/${pkgname}"
|
||||
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 "$pkgname/build"
|
||||
sudo make install
|
||||
echo "Maybe kernel patch be necessary !!"
|
||||
cd "${srcdir}/${pkgname}/build"
|
||||
DESTDIR="${pkgdir}" make install
|
||||
cd "${srcdir}/${pkgname}/config"
|
||||
install -Dm644 99-realsense-libusb.rules "${pkgdir}/etc/udev/rules.d/99-realsense-libusb.rules"
|
||||
}
|
||||
|
@ -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."
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user