Instantly share code, notes, and snippets.

@poqudrof /PKGBUILD
Last active May 15, 2018

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

This comment has been minimized.

Show comment
Hide comment
@poqudrof

poqudrof May 15, 2018

How to use:

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

poqudrof commented May 15, 2018

How to use:

cd ~ 
mkdir openni ; cd openni
# download this file
wget https://gist.github.com/poqudrof/184c3f615928a63d54105d31f674c1c3/raw/10e2b86ea93ef120fc1d12b16e3edcc67b82284b/PKGBUILD
# Build the package
makepkg --skipinteg -f
# Install the package 
sudo pacman -U openni-astra-2.3-1-x86_64.pkg.tar.xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment