Skip to content

Instantly share code, notes, and snippets.

@poqudrof poqudrof/PKGBUILD
Last active Feb 27, 2019

Embed
What would you like to do?
PKGBUILD for Orbbec Astra S - Updated to 2.3.0 - 55 the latest version in Feb 2019.
# Maintainer: Jeremy Laviole <laviole@rea.lity.tech>
## Build without integrity check for now makepkg --skipinteg -f
pkgname="openni-astra"
pkgver=2.3.0
pkgrel=55
epoch=
pkgdesc=""
arch=('x86_64')
url="https://orbbec3d.com/develop/"
license=('Unknown')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("http://dl.orbbec3d.com/dist/openni2/OpenNI_$pkgver.$pkgrel.zip")
md5sums=('ba904070a850f8af52ed868044064e4c')
noextract=()
validpgpkeys=()
prepare() {
cd .
}
build() {
cd .
}
check() {
cd .
}
package() {
cd $srcdir/OpenNI_$pkgver.$pkgrel/Linux/OpenNI-Linux-x64-$pkgver.$pkgrel
## Includes
mkdir -p $pkgdir/usr/include/
cp Include/*.h $pkgdir/usr/include/
cp -R Include/Linux-x86 $pkgdir/usr/include/Linux-x86
cp -R Include/Driver $pkgdir/usr/include/Driver
## Rules
mkdir -p $pkgdir/etc/udev/rules.d
cp orbbec-usb.rules $pkgdir/etc/udev/rules.d/558-orbbec-usb.rules
## Library
mkdir -p $pkgdir/usr/lib
cp -r Redist/*.so $pkgdir/usr/lib/
cp -r Redist/*.ini $pkgdir/usr/lib
cp -r Redist/OpenNI2 $pkgdir/usr/lib
}
@poqudrof

This comment has been minimized.

Copy link
Owner Author

poqudrof commented May 15, 2018

How to use:

cd ~ 
mkdir openni ; cd openni
# download this file
wget https://gist.githubusercontent.com/poqudrof/184c3f615928a63d54105d31f674c1c3/raw/cdc663e000adafb7a050d7d7d31fe906536a2a4a/PKGBUILD
# Build the package
makepkg --skipinteg -f
# Install the package 
sudo pacman -U openni-astra-2.3*.pkg.tar.xz

Last edit: Feb 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.